#include <gmlib/sm9/internal/sm9_field.h>
#include <stdexcept>
#include <cstring>

using namespace sm9::internal;

void test_sm9_fp_add()
{
    sm9_fp_t    augend, addend, sum;
    std::uint8_t sum_data[32];

    static std::uint8_t augend0[32] = {0x91,0x99,0x66,0x75,0x9b,0x09,0x00,0x5f,0xe3,0x5f,0xa3,0x3a,0x2c,0xb4,0x1f,0x34,0xcd,0xe8,0x10,0xa1,0xd9,0xe6,0x8b,0x58,0xcb,0x64,0xa3,0x1d,0x2b,0xf7,0x5f,0x3c};
    static std::uint8_t addend0[32] = {0x3e,0x55,0xba,0x29,0x0c,0xf6,0xf1,0x2b,0x80,0xed,0xd2,0xbe,0xcf,0x8a,0x84,0x62,0xe0,0x32,0x83,0xac,0x50,0xf5,0xd4,0xbb,0x30,0x11,0x60,0xb5,0xad,0xd9,0x52,0x76};
    static std::uint8_t sum0[32]    = {0x19,0xaf,0x20,0x9e,0xa5,0x5c,0x4a,0x99,0x8e,0x49,0xca,0xa9,0x06,0xaf,0xdc,0x52,0x8c,0x28,0x01,0x03,0x10,0x61,0x71,0x38,0x16,0x06,0x68,0xaa,0xf6,0x7f,0x6c,0x35};
    sm9_fp_from_bytes(augend, augend0);
    sm9_fp_from_bytes(addend, addend0);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum0, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend1[32] = {0x8f,0xe9,0x5a,0x5a,0xdb,0x03,0x27,0x87,0xd4,0x03,0x74,0x07,0x9a,0xa3,0x42,0xed,0xab,0xb2,0xed,0x51,0xc2,0xdf,0x47,0x13,0x40,0x66,0x3f,0xd7,0xa4,0xd0,0x98,0x72};
    static std::uint8_t addend1[32] = {0xae,0x5d,0xb6,0x56,0xa7,0xaf,0x8b,0xc7,0x2e,0xaf,0x26,0x7c,0x10,0xb5,0xd4,0xd4,0x96,0xb9,0x6d,0xb5,0x82,0x40,0x87,0x5b,0x56,0xcc,0xe8,0xbd,0x52,0xc1,0x43,0xc0};
    static std::uint8_t sum1[32]    = {0x88,0x07,0x10,0xb1,0x80,0x0f,0x0c,0x5d,0x2c,0xae,0xef,0x33,0xb5,0xca,0x50,0x7d,0x20,0x79,0xc7,0xbc,0x2a,0xa4,0xdf,0x92,0xb1,0xc3,0x8d,0x6d,0x14,0x40,0x96,0xb5};
    sm9_fp_from_bytes(augend, augend1);
    sm9_fp_from_bytes(addend, addend1);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum1, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend2[32] = {0x01,0xc4,0x5b,0x89,0xe8,0x7e,0x94,0xbe,0xed,0xb8,0x7d,0xee,0x7c,0x97,0x73,0x2f,0xe4,0x22,0x27,0x1c,0x6b,0xa3,0x20,0xad,0x03,0x8d,0x5c,0x26,0xb0,0xfe,0xed,0x64};
    static std::uint8_t addend2[32] = {0x95,0xa3,0xcc,0x23,0xbb,0xc9,0x10,0x79,0x31,0xdb,0x0f,0x16,0x62,0x97,0xdc,0xb1,0xff,0xf1,0x57,0x16,0x6b,0xa2,0x89,0x17,0x24,0x64,0xc7,0xfa,0x3d,0xee,0x0f,0xc8};
    static std::uint8_t sum2[32]    = {0x97,0x68,0x27,0xad,0xa4,0x47,0xa5,0x38,0x1f,0x93,0x8d,0x04,0xdf,0x2f,0x4f,0xe1,0xe4,0x13,0x7e,0x32,0xd7,0x45,0xa9,0xc4,0x27,0xf2,0x24,0x20,0xee,0xec,0xfd,0x2c};
    sm9_fp_from_bytes(augend, augend2);
    sm9_fp_from_bytes(addend, addend2);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum2, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend3[32] = {0x1c,0x2c,0x5b,0xcf,0xa1,0x76,0x00,0x31,0x0e,0x30,0x8a,0x15,0x5a,0x14,0x5c,0x5e,0x35,0xe2,0xa7,0x21,0x6f,0x7f,0x98,0x48,0x80,0x7f,0xc1,0x3a,0x9e,0x1b,0xeb,0x29};
    static std::uint8_t addend3[32] = {0x04,0xae,0xfb,0xc7,0x46,0xa7,0xf8,0x20,0x36,0x2b,0xc5,0xe0,0x49,0x9e,0x70,0x13,0x36,0x30,0xc0,0x8e,0x04,0x4d,0x7f,0xb4,0x00,0x67,0xa8,0xb2,0x0b,0x45,0x98,0xfb};
    static std::uint8_t sum3[32]    = {0x20,0xdb,0x57,0x96,0xe8,0x1d,0xf8,0x51,0x44,0x5c,0x4f,0xf5,0xa3,0xb2,0xcc,0x71,0x6c,0x13,0x67,0xaf,0x73,0xcd,0x17,0xfc,0x80,0xe7,0x69,0xec,0xa9,0x61,0x84,0x24};
    sm9_fp_from_bytes(augend, augend3);
    sm9_fp_from_bytes(addend, addend3);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum3, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend4[32] = {0x91,0xd4,0xa4,0x6b,0xaa,0xa2,0xce,0x4d,0x94,0xcf,0xe2,0x29,0xb4,0x07,0x8d,0x37,0xce,0x92,0x7a,0x89,0x32,0x11,0xc3,0x7c,0xaf,0xe7,0x06,0xef,0x5e,0x85,0xad,0x2b};
    static std::uint8_t addend4[32] = {0x4d,0xf8,0xfc,0xd2,0xbe,0x99,0x74,0xd6,0x60,0x1c,0xed,0x35,0x7b,0x98,0xf0,0x72,0x35,0xea,0x0c,0x98,0x71,0x0d,0xea,0xc6,0xd5,0x0c,0xf5,0xd6,0x7a,0x8a,0x97,0x9b};
    static std::uint8_t sum4[32]    = {0x29,0x8d,0xa1,0x3e,0x66,0x98,0x9c,0x32,0x1e,0xe9,0x24,0x0f,0x3a,0x11,0xb6,0x64,0xe2,0x89,0xf3,0xd6,0x88,0xa4,0xbf,0x67,0x9f,0x84,0x61,0x9d,0xf5,0xbe,0xff,0x49};
    sm9_fp_from_bytes(augend, augend4);
    sm9_fp_from_bytes(addend, addend4);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum4, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend5[32] = {0x4a,0x61,0x01,0x46,0x09,0xce,0x7a,0x08,0x95,0x64,0x56,0xe1,0x31,0x22,0xd2,0xba,0x3d,0x73,0x62,0x36,0x74,0x21,0x5d,0xf9,0x49,0x56,0x74,0x5c,0xbf,0x1c,0x12,0xf4};
    static std::uint8_t addend5[32] = {0x08,0xfe,0x70,0x1f,0x23,0x1a,0x75,0x88,0x63,0x19,0x88,0x30,0xa9,0xf5,0xc7,0x51,0x81,0x7e,0xee,0x0a,0x27,0x5f,0xe1,0x4e,0x70,0xf7,0x69,0x45,0x16,0x1b,0xc9,0x3f};
    static std::uint8_t sum5[32]    = {0x53,0x5f,0x71,0x65,0x2c,0xe8,0xef,0x90,0xf8,0x7d,0xdf,0x11,0xdb,0x18,0x9a,0x0b,0xbe,0xf2,0x50,0x40,0x9b,0x81,0x3f,0x47,0xba,0x4d,0xdd,0xa1,0xd5,0x37,0xdc,0x33};
    sm9_fp_from_bytes(augend, augend5);
    sm9_fp_from_bytes(addend, addend5);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum5, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend6[32] = {0x2f,0xcd,0xce,0xf1,0x9d,0xea,0x17,0x19,0x5d,0xff,0x3f,0x7b,0x37,0x81,0xd2,0xa5,0x89,0x85,0x8d,0x30,0xe0,0x43,0xa8,0x14,0x30,0xd3,0xc8,0xb4,0xb1,0x94,0xc4,0x6a};
    static std::uint8_t addend6[32] = {0x94,0x3e,0x59,0x02,0x32,0x05,0x2d,0x4d,0x22,0x6e,0xd2,0x4d,0xf5,0x05,0x01,0x1a,0x18,0x85,0x96,0xa9,0x63,0x5c,0x5c,0x5d,0x9c,0xfe,0x7f,0xb0,0x29,0x70,0x3f,0x0e};
    static std::uint8_t sum6[32]    = {0x0d,0xcc,0x27,0xf3,0xcd,0x4b,0x9d,0x74,0xaa,0x6a,0x66,0x79,0x36,0xf8,0x0c,0x7a,0x80,0x18,0x90,0x8f,0x29,0x25,0x15,0x95,0xe8,0x62,0xad,0x3c,0xf7,0xb3,0xbd,0xfb};
    sm9_fp_from_bytes(augend, augend6);
    sm9_fp_from_bytes(addend, addend6);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum6, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend7[32] = {0x8c,0xd8,0xaf,0xb0,0x68,0xa2,0x96,0x33,0x21,0x82,0x71,0x2c,0x2b,0x12,0xf7,0x9d,0xfe,0x9b,0xbd,0xc9,0xfc,0x3a,0x6f,0x02,0x71,0x61,0x2d,0xa5,0x06,0xef,0x3e,0x40};
    static std::uint8_t addend7[32] = {0x1c,0x32,0x93,0x2f,0x13,0x6f,0xdc,0xcc,0x5b,0xab,0x75,0xe4,0x74,0x2b,0x20,0xff,0xf8,0x9c,0x6b,0xb8,0x2b,0xc7,0x1d,0x6c,0x8e,0xcf,0xe4,0xf3,0x6d,0x3b,0x78,0xfc};
    static std::uint8_t sum7[32]    = {0xa9,0x0b,0x42,0xdf,0x7c,0x12,0x72,0xff,0x7d,0x2d,0xe7,0x10,0x9f,0x3e,0x18,0x9d,0xf7,0x38,0x29,0x82,0x28,0x01,0x8c,0x6f,0x00,0x31,0x12,0x98,0x74,0x2a,0xb7,0x3c};
    sm9_fp_from_bytes(augend, augend7);
    sm9_fp_from_bytes(addend, addend7);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum7, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend8[32] = {0x72,0x08,0xa7,0xf2,0x37,0x4f,0xb3,0x26,0xf9,0x3a,0xe3,0x6f,0x10,0x8e,0x93,0x68,0x9e,0xb7,0xdc,0x67,0x56,0xfb,0x41,0x9d,0x2a,0xa4,0x5e,0xb9,0x69,0x76,0x6c,0xf7};
    static std::uint8_t addend8[32] = {0x52,0x22,0x1e,0xc8,0xb9,0x03,0xae,0x0d,0x27,0xfb,0xf9,0x6f,0x9d,0x91,0x36,0x7d,0x1a,0xbb,0x77,0x51,0x76,0x6e,0xcb,0xe3,0x04,0x96,0xbd,0x38,0x0b,0xf1,0xda,0x83};
    static std::uint8_t sum8[32]    = {0x0d,0xea,0xc6,0xba,0xed,0xaf,0xba,0x42,0x4b,0x33,0x31,0x8e,0xb8,0x91,0x02,0xa0,0x97,0x80,0xc0,0x6d,0xb2,0xef,0x1e,0xa4,0x49,0xcb,0x80,0xc9,0x92,0x17,0x01,0xfd};
    sm9_fp_from_bytes(augend, augend8);
    sm9_fp_from_bytes(addend, addend8);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum8, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend9[32] = {0x1b,0x72,0x50,0xc8,0x1e,0x74,0x60,0x8b,0x3b,0x07,0x82,0x30,0x2b,0x6a,0xaf,0x31,0xa9,0x0a,0x13,0x8a,0x61,0x2a,0xae,0x88,0xa5,0xb6,0x30,0xe3,0x37,0x0f,0x43,0xb1};
    static std::uint8_t addend9[32] = {0xa8,0x05,0xaf,0x74,0x79,0x86,0x53,0xa8,0x9b,0x5d,0x82,0x25,0x51,0xf0,0x45,0xc7,0x92,0x27,0xe2,0x3e,0xed,0xcf,0x92,0x93,0x4a,0x35,0x0a,0x32,0x18,0x10,0x91,0xc3};
    static std::uint8_t sum9[32]    = {0x0d,0x38,0x00,0x3c,0x95,0x57,0x0d,0x42,0x00,0x61,0x59,0x05,0x87,0xcc,0x2d,0xb4,0x19,0x3f,0x62,0x7e,0x34,0x7f,0x52,0x40,0x0a,0x7b,0x9f,0xed,0x6b,0xce,0x8f,0xf7};
    sm9_fp_from_bytes(augend, augend9);
    sm9_fp_from_bytes(addend, addend9);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum9, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend10[32] = {0x74,0xa1,0xd7,0x62,0x18,0x98,0x87,0xbd,0x7b,0x76,0xf2,0x9b,0x6c,0x6f,0x27,0x76,0xf9,0x3d,0x06,0xb4,0x92,0x20,0x77,0xa5,0xa2,0x26,0x1a,0x48,0xff,0x7d,0xd2,0xea};
    static std::uint8_t addend10[32] = {0xae,0x69,0x63,0x0a,0x0d,0x5a,0xbd,0xdf,0x6f,0xf8,0x72,0xa8,0x6b,0x1d,0xc4,0x2b,0x92,0x9c,0x63,0xe0,0xa1,0x01,0x01,0xc7,0xbe,0x82,0xee,0x03,0x1b,0x5c,0x8e,0xb6};
    static std::uint8_t sum10[32]    = {0x6c,0xcb,0x3a,0x6c,0x23,0x4f,0x9e,0xab,0x15,0x6b,0xb9,0xf3,0xe1,0xfe,0x24,0x5d,0x69,0xe6,0xd7,0x4a,0x18,0xa6,0x8a,0x91,0x7b,0x39,0x6d,0x24,0x37,0x89,0x1c,0x23};
    sm9_fp_from_bytes(augend, augend10);
    sm9_fp_from_bytes(addend, addend10);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum10, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend11[32] = {0x04,0xd6,0x33,0xa0,0x69,0xa4,0xec,0xe3,0xb5,0xbd,0xa0,0xb3,0xa6,0x4f,0xa8,0x5e,0x5d,0x81,0xa9,0xd6,0xf8,0xd3,0x14,0x82,0x4a,0x3d,0xfd,0x56,0x79,0x99,0xd7,0x10};
    static std::uint8_t addend11[32] = {0x8f,0xbe,0x0b,0x02,0x0f,0xcc,0xd8,0x60,0x47,0x66,0x79,0xbe,0xb1,0x80,0xb6,0x71,0x06,0x4f,0x50,0x0a,0xb7,0xde,0xd9,0xd3,0x82,0x3d,0x4f,0xd9,0xd6,0x9f,0xe1,0xad};
    static std::uint8_t sum11[32]    = {0x94,0x94,0x3e,0xa2,0x79,0x71,0xc5,0x43,0xfd,0x24,0x1a,0x72,0x57,0xd0,0x5e,0xcf,0x63,0xd0,0xf9,0xe1,0xb0,0xb1,0xee,0x55,0xcc,0x7b,0x4d,0x30,0x50,0x39,0xb8,0xbd};
    sm9_fp_from_bytes(augend, augend11);
    sm9_fp_from_bytes(addend, addend11);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum11, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend12[32] = {0x13,0xcc,0x98,0x0e,0xea,0x95,0xfa,0x99,0x3d,0x09,0x81,0x0c,0xb5,0xae,0x96,0x12,0x68,0x08,0xdc,0xcc,0xe1,0xa2,0xdd,0xd6,0x5d,0xa4,0xe8,0xd0,0x7a,0x80,0xfe,0x7c};
    static std::uint8_t addend12[32] = {0x28,0x29,0x08,0x04,0xc7,0xcb,0x93,0x41,0x5a,0xbf,0x9b,0x4b,0xef,0xe7,0xce,0xb7,0x53,0x21,0xf8,0xae,0xd2,0x9e,0x76,0x2c,0xdc,0x3c,0xda,0x63,0xdd,0x60,0x70,0x68};
    static std::uint8_t sum12[32]    = {0x3b,0xf5,0xa0,0x13,0xb2,0x61,0x8d,0xda,0x97,0xc9,0x1c,0x58,0xa5,0x96,0x64,0xc9,0xbb,0x2a,0xd5,0x7b,0xb4,0x41,0x54,0x03,0x39,0xe1,0xc3,0x34,0x57,0xe1,0x6e,0xe4};
    sm9_fp_from_bytes(augend, augend12);
    sm9_fp_from_bytes(addend, addend12);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum12, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend13[32] = {0x6f,0xc7,0xd4,0x24,0x42,0xc0,0x36,0xc7,0xf3,0x7d,0x39,0x8f,0x96,0x30,0x36,0xc8,0x46,0x60,0x76,0x77,0x4c,0xac,0xac,0x53,0xaa,0x74,0x5f,0x50,0xdf,0x77,0x0d,0x54};
    static std::uint8_t addend13[32] = {0xb2,0x88,0xc7,0xab,0xe5,0x1b,0x9e,0xe8,0xe2,0xfd,0xf6,0x4a,0x74,0x0a,0x11,0x79,0xbf,0x85,0x94,0x9f,0x50,0xa4,0xd3,0xe2,0xbd,0x49,0x45,0x0a,0xc2,0x86,0x82,0x4c};
    static std::uint8_t sum13[32]    = {0x6c,0x10,0x9b,0xd0,0x25,0x38,0x2e,0xbf,0x00,0x77,0x84,0x8a,0x14,0xab,0x80,0xfc,0xe3,0xf3,0x77,0xcb,0x82,0xd6,0x91,0x5a,0x82,0x4e,0x09,0x33,0xbe,0xac,0x4a,0x23};
    sm9_fp_from_bytes(augend, augend13);
    sm9_fp_from_bytes(addend, addend13);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum13, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend14[32] = {0x0e,0x42,0xd6,0x8e,0x24,0xcd,0x5e,0x61,0xd0,0xc4,0x31,0x42,0xe4,0x3b,0xbb,0xed,0xb7,0xb9,0xef,0x75,0x29,0x29,0x21,0x40,0x1b,0x98,0x8d,0xcc,0x9e,0x9a,0xfe,0x24};
    static std::uint8_t addend14[32] = {0x09,0xd2,0x09,0x6d,0x54,0x80,0xe3,0xcb,0x7a,0xb6,0x26,0x17,0x17,0xca,0x66,0x87,0xc7,0xde,0x08,0x81,0x11,0xd1,0xd9,0x71,0xfd,0x30,0x64,0xa2,0x5d,0x78,0x93,0xfa};
    static std::uint8_t sum14[32]    = {0x18,0x14,0xdf,0xfb,0x79,0x4e,0x42,0x2d,0x4b,0x7a,0x57,0x59,0xfc,0x06,0x22,0x75,0x7f,0x97,0xf7,0xf6,0x3a,0xfa,0xfa,0xb2,0x18,0xc8,0xf2,0x6e,0xfc,0x13,0x92,0x1e};
    sm9_fp_from_bytes(augend, augend14);
    sm9_fp_from_bytes(addend, addend14);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum14, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend15[32] = {0x5d,0x08,0xe4,0x09,0x3a,0xea,0x16,0x77,0x64,0xbe,0xff,0x90,0x8b,0x8a,0x8a,0xf8,0xe9,0x20,0xe6,0xdd,0x57,0xa0,0x78,0x06,0x94,0x96,0x0b,0x5d,0x19,0x95,0xc7,0x40};
    static std::uint8_t addend15[32] = {0x53,0x75,0x34,0xce,0x4b,0xde,0xba,0x69,0x0e,0x1c,0xc6,0x67,0x39,0xbb,0xba,0xf8,0xcb,0x74,0x11,0x17,0x97,0x92,0x07,0x02,0x2f,0x79,0x90,0x67,0x47,0xb6,0x09,0x77};
    static std::uint8_t sum15[32]    = {0xb0,0x7e,0x18,0xd7,0x86,0xc8,0xd0,0xe0,0x72,0xdb,0xc5,0xf7,0xc5,0x46,0x45,0xf1,0xb4,0x94,0xf7,0xf4,0xef,0x32,0x7f,0x08,0xc4,0x0f,0x9b,0xc4,0x61,0x4b,0xd0,0xb7};
    sm9_fp_from_bytes(augend, augend15);
    sm9_fp_from_bytes(addend, addend15);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum15, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend16[32] = {0x92,0x69,0x19,0x97,0xe9,0x7b,0xa8,0x83,0x8a,0x1f,0xe0,0xd7,0x2c,0xd8,0x1e,0x3c,0x0d,0x5c,0x05,0xc6,0xd7,0x7d,0xd9,0xba,0xbd,0xe7,0x9b,0x32,0xd9,0xfc,0xff,0xbf};
    static std::uint8_t addend16[32] = {0x20,0xf0,0xdc,0xff,0xf3,0x89,0xec,0x7f,0x05,0x69,0xd6,0xf6,0x53,0x56,0x5c,0xf8,0x98,0x19,0xe8,0xef,0xea,0xb3,0x19,0xb7,0x3a,0x23,0x08,0x87,0xf0,0xb4,0xea,0x78};
    static std::uint8_t sum16[32]    = {0xb3,0x59,0xf6,0x97,0xdd,0x05,0x95,0x02,0x8f,0x89,0xb7,0xcd,0x80,0x2e,0x7b,0x34,0xa5,0x75,0xee,0xb6,0xc2,0x30,0xf3,0x71,0xf8,0x0a,0xa3,0xba,0xca,0xb1,0xea,0x37};
    sm9_fp_from_bytes(augend, augend16);
    sm9_fp_from_bytes(addend, addend16);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum16, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend17[32] = {0x89,0xc3,0x79,0xa3,0xc1,0xab,0xde,0x42,0x51,0x93,0x82,0x02,0xb7,0x96,0x3c,0x37,0x80,0x9f,0x94,0xfe,0xfc,0x09,0x0e,0x50,0x01,0x0c,0xc2,0x73,0xcc,0x1c,0xed,0xbd};
    static std::uint8_t addend17[32] = {0x2c,0x2e,0xd8,0x04,0x1e,0xb8,0x0b,0x0e,0x96,0x7f,0x00,0xb5,0x5f,0x88,0x06,0xd8,0xf4,0x4f,0xc2,0x44,0x92,0xdc,0x5f,0xcf,0x60,0x53,0x4a,0x8d,0xc6,0x36,0xf6,0xe0};
    static std::uint8_t sum17[32]    = {0xb5,0xf2,0x51,0xa7,0xe0,0x63,0xe9,0x50,0xe8,0x12,0x82,0xb8,0x17,0x1e,0x43,0x10,0x74,0xef,0x57,0x43,0x8e,0xe5,0x6e,0x1f,0x61,0x60,0x0d,0x01,0x92,0x53,0xe4,0x9d};
    sm9_fp_from_bytes(augend, augend17);
    sm9_fp_from_bytes(addend, addend17);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum17, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend18[32] = {0x60,0xab,0x26,0xca,0x5a,0x92,0x08,0x98,0x66,0x2f,0xe6,0xe5,0x1f,0x53,0xc8,0x3f,0x0e,0x71,0xd4,0xa0,0xbd,0x42,0x83,0xad,0xc4,0x1b,0x8b,0xf5,0xcb,0x4c,0x7a,0x5b};
    static std::uint8_t addend18[32] = {0x27,0x9b,0xb4,0xb8,0x8a,0xb3,0xc6,0x53,0x16,0x02,0x6b,0x30,0x89,0x47,0x5e,0x0e,0x37,0xdd,0x78,0x6d,0x86,0x37,0xc1,0x88,0x3e,0x69,0xdb,0x67,0x8b,0x0e,0xd2,0x92};
    static std::uint8_t sum18[32]    = {0x88,0x46,0xdb,0x82,0xe5,0x45,0xce,0xeb,0x7c,0x32,0x52,0x15,0xa8,0x9b,0x26,0x4d,0x46,0x4f,0x4d,0x0e,0x43,0x7a,0x45,0x36,0x02,0x85,0x67,0x5d,0x56,0x5b,0x4c,0xed};
    sm9_fp_from_bytes(augend, augend18);
    sm9_fp_from_bytes(addend, addend18);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum18, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend19[32] = {0x1b,0xda,0xbc,0x37,0x02,0x66,0x42,0x40,0x1f,0x34,0xd4,0x80,0x0a,0xe1,0xc2,0x5e,0x6c,0xc9,0x06,0x86,0xe7,0x6a,0xca,0x27,0xa4,0xac,0x48,0x52,0x44,0xcf,0x88,0x2f};
    static std::uint8_t addend19[32] = {0x29,0x05,0xe7,0x67,0xfa,0x2c,0xb2,0x41,0xab,0x5d,0xab,0x96,0x10,0x3d,0xb3,0xf6,0x54,0x1b,0x7c,0x30,0x55,0x61,0x09,0xce,0xd3,0x88,0x15,0x10,0x65,0x62,0x37,0xc3};
    static std::uint8_t sum19[32]    = {0x44,0xe0,0xa3,0x9e,0xfc,0x92,0xf4,0x81,0xca,0x92,0x80,0x16,0x1b,0x1f,0x76,0x54,0xc0,0xe4,0x82,0xb7,0x3c,0xcb,0xd3,0xf6,0x78,0x34,0x5d,0x62,0xaa,0x31,0xbf,0xf2};
    sm9_fp_from_bytes(augend, augend19);
    sm9_fp_from_bytes(addend, addend19);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum19, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend20[32] = {0x1d,0xc1,0xfc,0x22,0x0c,0x70,0x50,0x2b,0xa9,0x3b,0x31,0x8c,0x1c,0x89,0x08,0xf8,0xbc,0x31,0xff,0x2a,0xcf,0x2d,0x73,0x29,0x41,0x69,0x03,0xcb,0x0c,0x7f,0xc9,0x63};
    static std::uint8_t addend20[32] = {0x2a,0xbb,0x64,0x27,0x56,0x1e,0x75,0x52,0xaa,0x58,0x14,0x2b,0x7f,0x92,0x99,0xf1,0xc0,0x6e,0xed,0x70,0xb0,0x53,0x05,0x06,0x6c,0xc6,0xbf,0x9d,0x9e,0x25,0x0b,0xcc};
    static std::uint8_t sum20[32]    = {0x48,0x7d,0x60,0x49,0x62,0x8e,0xc5,0x7e,0x53,0x93,0x45,0xb7,0x9c,0x1b,0xa2,0xea,0x7c,0xa0,0xec,0x9b,0x7f,0x80,0x78,0x2f,0xae,0x2f,0xc3,0x68,0xaa,0xa4,0xd5,0x2f};
    sm9_fp_from_bytes(augend, augend20);
    sm9_fp_from_bytes(addend, addend20);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum20, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend21[32] = {0x8f,0x46,0x68,0x87,0x42,0xac,0x30,0xbe,0x08,0x76,0x20,0x2b,0x50,0x84,0x3d,0xd2,0x75,0x52,0xc5,0x84,0x44,0x84,0x22,0x83,0x7b,0x44,0x1e,0xbf,0x7b,0x8c,0x2e,0xbc};
    static std::uint8_t addend21[32] = {0xb3,0xcc,0x22,0x50,0xa7,0x01,0x18,0xff,0x71,0xdb,0x5d,0x71,0x24,0x46,0x2e,0x16,0x16,0xa3,0x3b,0x4c,0x42,0x83,0xbc,0xd8,0x45,0x56,0xa8,0x03,0x29,0xce,0x16,0xc8};
    static std::uint8_t sum21[32]    = {0x8c,0xd2,0x8a,0xd7,0xe7,0x09,0xa2,0xcb,0xa4,0x4d,0xd2,0x4c,0x7f,0x3b,0xa4,0xa3,0x6a,0x03,0x6d,0x85,0x6c,0x8c,0xf0,0x7f,0xdb,0x2b,0x2b,0x9a,0xc2,0x09,0x00,0x07};
    sm9_fp_from_bytes(augend, augend21);
    sm9_fp_from_bytes(addend, addend21);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum21, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend22[32] = {0x7a,0x82,0x8e,0x9c,0x6e,0xec,0xfc,0xd4,0xf3,0x17,0xf1,0x3a,0xa1,0xb6,0xb6,0xb3,0x07,0x52,0x89,0x29,0x74,0x66,0x77,0xda,0xb2,0xd5,0x26,0x6f,0x3b,0x3a,0x19,0xde};
    static std::uint8_t addend22[32] = {0x0c,0xd8,0x40,0x62,0x70,0x0b,0x9a,0x02,0x25,0x08,0x68,0xf9,0x21,0xde,0x1c,0x01,0x74,0xb6,0x50,0x29,0x5b,0x70,0xb1,0x6d,0xc2,0x11,0x97,0x64,0x37,0xe7,0x95,0x35};
    static std::uint8_t sum22[32]    = {0x87,0x5a,0xce,0xfe,0xde,0xf8,0x96,0xd7,0x18,0x20,0x5a,0x33,0xc3,0x94,0xd2,0xb4,0x7c,0x08,0xd9,0x52,0xcf,0xd7,0x29,0x48,0x74,0xe6,0xbd,0xd3,0x73,0x21,0xaf,0x13};
    sm9_fp_from_bytes(augend, augend22);
    sm9_fp_from_bytes(addend, addend22);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum22, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend23[32] = {0x25,0xe7,0x0a,0x1d,0x57,0x75,0x9a,0xed,0x66,0x63,0x0e,0xa9,0x60,0x1e,0x35,0x1e,0x0d,0xed,0x03,0x0b,0x0d,0xbd,0x88,0x12,0x33,0x6a,0x65,0x53,0x1a,0xdd,0xa9,0xbe};
    static std::uint8_t addend23[32] = {0x3e,0xaa,0x63,0x06,0x61,0x22,0xf0,0xb5,0x88,0x10,0x59,0x29,0xa2,0xd0,0x6a,0xf5,0x68,0xce,0x23,0x69,0x01,0x32,0xc2,0xea,0xec,0x9d,0x38,0xf1,0x64,0x78,0xf7,0xec};
    static std::uint8_t sum23[32]    = {0x64,0x91,0x6d,0x23,0xb8,0x98,0x8b,0xa2,0xee,0x73,0x67,0xd3,0x02,0xee,0xa0,0x13,0x76,0xbb,0x26,0x74,0x0e,0xf0,0x4a,0xfd,0x20,0x07,0x9e,0x44,0x7f,0x56,0xa1,0xaa};
    sm9_fp_from_bytes(augend, augend23);
    sm9_fp_from_bytes(addend, addend23);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum23, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend24[32] = {0x84,0x13,0xea,0xd1,0x8d,0x16,0xb6,0x26,0xc0,0xdf,0x9c,0x96,0x6f,0xb3,0xdf,0xa6,0x0b,0x24,0x94,0xa6,0x0c,0x3a,0x8d,0x77,0x41,0x30,0x9f,0xfb,0xab,0xf9,0xe1,0x94};
    static std::uint8_t addend24[32] = {0x2c,0x5a,0xcf,0x3e,0x12,0x78,0x7a,0xeb,0xcb,0xfa,0xe1,0xd9,0x2a,0x43,0x13,0x1b,0xc9,0x77,0x9a,0x9f,0xa2,0x1e,0xfa,0x64,0x26,0x71,0x72,0xc7,0x5b,0xc9,0xe2,0x42};
    static std::uint8_t sum24[32]    = {0xb0,0x6e,0xba,0x0f,0x9f,0x8f,0x31,0x12,0x8c,0xda,0x7e,0x6f,0x99,0xf6,0xf2,0xc1,0xd4,0x9c,0x2f,0x45,0xae,0x59,0x87,0xdb,0x67,0xa2,0x12,0xc3,0x07,0xc3,0xc3,0xd6};
    sm9_fp_from_bytes(augend, augend24);
    sm9_fp_from_bytes(addend, addend24);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum24, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend25[32] = {0x1b,0xf0,0x02,0x3c,0xaf,0x9d,0x28,0x84,0xb5,0x78,0xd5,0xad,0xe9,0xa6,0x00,0x54,0xec,0x25,0x3e,0x3e,0xdf,0x60,0x30,0xf9,0x32,0x57,0xfa,0x72,0xdc,0x55,0x7a,0x0a};
    static std::uint8_t addend25[32] = {0x1f,0x46,0x9e,0x86,0xf7,0x2c,0xdf,0x59,0x80,0x5c,0x9c,0x94,0x01,0x33,0x0c,0x98,0xe1,0x9f,0x95,0x53,0x99,0x77,0xa2,0x10,0xe5,0x58,0xbf,0xd6,0x4c,0xa9,0xbf,0x5c};
    static std::uint8_t sum25[32]    = {0x3b,0x36,0xa0,0xc3,0xa6,0xca,0x07,0xde,0x35,0xd5,0x72,0x41,0xea,0xd9,0x0c,0xed,0xcd,0xc4,0xd3,0x92,0x78,0xd7,0xd3,0x0a,0x17,0xb0,0xba,0x49,0x28,0xff,0x39,0x66};
    sm9_fp_from_bytes(augend, augend25);
    sm9_fp_from_bytes(addend, addend25);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum25, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend26[32] = {0x3c,0x5c,0x6f,0xd6,0x96,0x8f,0xca,0x3e,0xa4,0x32,0x70,0xf4,0xfa,0x85,0xa3,0x5e,0x0d,0xc0,0xc5,0x0d,0x95,0x27,0xd7,0xdc,0x23,0xf5,0x45,0x08,0xe4,0xe8,0x35,0x2d};
    static std::uint8_t addend26[32] = {0x1e,0xd5,0x44,0xa8,0xee,0x01,0xc4,0x05,0x3d,0xc2,0x50,0x8a,0x53,0xf8,0x27,0x16,0x06,0xdd,0x29,0xc8,0x10,0x8f,0x9d,0x45,0x58,0x82,0xe8,0x3b,0x97,0xc6,0xcd,0x03};
    static std::uint8_t sum26[32]    = {0x5b,0x31,0xb4,0x7f,0x84,0x91,0x8e,0x43,0xe1,0xf4,0xc1,0x7f,0x4e,0x7d,0xca,0x74,0x14,0x9d,0xee,0xd5,0xa5,0xb7,0x75,0x21,0x7c,0x78,0x2d,0x44,0x7c,0xaf,0x02,0x30};
    sm9_fp_from_bytes(augend, augend26);
    sm9_fp_from_bytes(addend, addend26);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum26, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend27[32] = {0x27,0x4c,0x15,0xde,0xfd,0x89,0xf7,0xd9,0xab,0x89,0x00,0x9f,0x42,0xca,0x6c,0x27,0x2c,0x30,0xf1,0x13,0xf3,0x23,0x74,0xe9,0x75,0x4d,0xf3,0x09,0x10,0x79,0xdd,0x28};
    static std::uint8_t addend27[32] = {0x3f,0xfd,0x74,0x81,0x4f,0x5a,0xf0,0x9c,0x8f,0xbe,0x81,0x8d,0x91,0x47,0x43,0xf1,0xd1,0xd6,0x9e,0xb0,0xf9,0x5d,0xf7,0x6c,0x01,0xb4,0x1b,0x80,0x61,0x19,0xd0,0x51};
    static std::uint8_t sum27[32]    = {0x67,0x49,0x8a,0x60,0x4c,0xe4,0xe8,0x76,0x3b,0x47,0x82,0x2c,0xd4,0x11,0xb0,0x18,0xfe,0x07,0x8f,0xc4,0xec,0x81,0x6c,0x55,0x77,0x02,0x0e,0x89,0x71,0x93,0xad,0x79};
    sm9_fp_from_bytes(augend, augend27);
    sm9_fp_from_bytes(addend, addend27);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum27, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend28[32] = {0x59,0x67,0xd8,0x48,0x1e,0xdf,0xb8,0x95,0xc6,0x80,0x3e,0xf3,0x17,0xed,0xa5,0x2e,0x89,0x86,0xce,0x6e,0xbb,0xe0,0xa9,0xcf,0xb8,0xab,0xfb,0x94,0xe7,0xb9,0xc3,0x95};
    static std::uint8_t addend28[32] = {0x8f,0x48,0xe4,0xd6,0x9f,0x0a,0xce,0xe9,0xfb,0xfa,0x9e,0xc9,0x27,0xa8,0xc0,0x1b,0xd9,0x82,0x4d,0x8a,0xf5,0xa8,0x4c,0xaa,0x3e,0xd9,0xe6,0x08,0xba,0x6b,0xed,0x98};
    static std::uint8_t sum28[32]    = {0x32,0x70,0xbd,0x1e,0xbb,0x46,0xe0,0x8d,0xec,0x77,0x32,0x6c,0x4a,0x07,0x9e,0x05,0x41,0x16,0x88,0xae,0x97,0x0e,0x07,0x9e,0x12,0x16,0x46,0x75,0xbe,0xd4,0x6b,0xb0};
    sm9_fp_from_bytes(augend, augend28);
    sm9_fp_from_bytes(addend, addend28);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum28, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend29[32] = {0x1e,0x28,0x12,0x33,0x9a,0xc1,0x85,0x92,0x70,0x8f,0x31,0x7d,0xbe,0x5f,0x9d,0x7e,0x55,0x3a,0xf1,0xcc,0x31,0x00,0x43,0xf9,0x3d,0xb9,0x82,0xfa,0x63,0xe6,0xa7,0xf0};
    static std::uint8_t addend29[32] = {0x0f,0xfe,0x68,0x43,0x53,0x8c,0xa5,0xe8,0x64,0x80,0x59,0x72,0x5a,0x2f,0x8d,0x77,0x2c,0xd2,0xe2,0xd8,0x20,0x01,0xd2,0x0c,0x56,0x5d,0xc5,0xc0,0xe0,0x2b,0xcd,0x81};
    static std::uint8_t sum29[32]    = {0x2e,0x26,0x7a,0x76,0xee,0x4e,0x2b,0x7a,0xd5,0x0f,0x8a,0xf0,0x18,0x8f,0x2a,0xf5,0x82,0x0d,0xd4,0xa4,0x51,0x02,0x16,0x05,0x94,0x17,0x48,0xbb,0x44,0x12,0x75,0x71};
    sm9_fp_from_bytes(augend, augend29);
    sm9_fp_from_bytes(addend, addend29);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum29, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend30[32] = {0xaa,0xff,0xc3,0x23,0x17,0x83,0x54,0xf3,0x28,0x0d,0x04,0xf8,0x5f,0x92,0x90,0x93,0x6d,0xe7,0x42,0xc3,0x05,0x3d,0x8d,0x1d,0x14,0xec,0x4a,0x6b,0x9b,0xe0,0x14,0xc0};
    static std::uint8_t addend30[32] = {0x33,0xf6,0x0d,0x2f,0x42,0x9d,0x05,0xf2,0x2f,0x0e,0xb0,0x02,0x34,0x79,0x25,0x88,0xc8,0x8d,0xc9,0xc9,0x1a,0x9a,0xdb,0x2e,0x91,0x4d,0xb8,0xbf,0x0c,0x98,0x37,0x2e};
    static std::uint8_t sum30[32]    = {0x28,0xb5,0xd0,0x52,0x57,0x7c,0xb3,0xf3,0x81,0x18,0x09,0xaa,0x9e,0x7c,0xee,0xd7,0x14,0x82,0x79,0x41,0x05,0x5d,0x79,0x6f,0xc0,0xca,0x68,0x02,0xc5,0x27,0x06,0x71};
    sm9_fp_from_bytes(augend, augend30);
    sm9_fp_from_bytes(addend, addend30);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum30, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend31[32] = {0x5a,0xc4,0xbb,0xef,0xc4,0x9e,0xf1,0x1d,0x57,0xf7,0x58,0xb2,0x26,0x5f,0xdb,0x38,0x71,0x48,0xbf,0x55,0x31,0x4e,0xf4,0xa2,0x6a,0x3f,0x7f,0xc8,0x78,0x41,0x17,0xd5};
    static std::uint8_t addend31[32] = {0x48,0xf8,0xbe,0xaa,0xae,0xe8,0x5e,0x25,0xe5,0xd6,0xf4,0xa8,0xfc,0xca,0xea,0x3d,0x85,0x93,0xa7,0xbd,0x40,0x48,0x4e,0x54,0xf3,0x9c,0x28,0x48,0x1d,0x7d,0xad,0x07};
    static std::uint8_t sum31[32]    = {0xa3,0xbd,0x7a,0x9a,0x73,0x87,0x4f,0x43,0x3d,0xce,0x4d,0x5b,0x23,0x2a,0xc5,0x75,0xf6,0xdc,0x67,0x12,0x71,0x97,0x42,0xf7,0x5d,0xdb,0xa8,0x10,0x95,0xbe,0xc4,0xdc};
    sm9_fp_from_bytes(augend, augend31);
    sm9_fp_from_bytes(addend, addend31);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum31, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend32[32] = {0x75,0xed,0x45,0xff,0xd7,0x79,0x85,0xbd,0x98,0x0b,0xd2,0x10,0x6a,0x0d,0xc7,0xa8,0xcf,0x24,0x0e,0x5e,0xbc,0xd8,0xcd,0xea,0xd8,0xa4,0xb1,0x9f,0x99,0x42,0x84,0xae};
    static std::uint8_t addend32[32] = {0xa6,0xa8,0xc0,0x12,0x3f,0x7e,0xdb,0x1c,0x56,0xbf,0xac,0x84,0x7e,0xd5,0xfa,0xaf,0x18,0x64,0x9c,0x68,0x61,0x4f,0x2b,0x57,0xab,0x98,0x4f,0x40,0x63,0xdc,0x7e,0x1d};
    static std::uint8_t sum32[32]    = {0x66,0x56,0x06,0x12,0x14,0x54,0xb9,0xe8,0x18,0xc7,0xd3,0x44,0xf3,0x54,0xfb,0x12,0xc5,0x96,0x17,0x7c,0x03,0xad,0x0a,0x66,0x9e,0xcd,0x65,0xb8,0x19,0xcd,0xbd,0x4e};
    sm9_fp_from_bytes(augend, augend32);
    sm9_fp_from_bytes(addend, addend32);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum32, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend33[32] = {0x68,0x35,0xd2,0xb6,0x7b,0xf0,0xc7,0x49,0xc0,0xb4,0x4b,0x63,0x6f,0x33,0x09,0x87,0x9a,0xad,0xef,0x9b,0x8a,0x3e,0x6f,0x2b,0x9a,0x78,0x7f,0x8b,0x5d,0x9f,0xd9,0x91};
    static std::uint8_t addend33[32] = {0x56,0x2d,0x3d,0xac,0x55,0x9b,0x28,0x4a,0x11,0xc4,0xa0,0xac,0x7e,0x8c,0x3b,0xe3,0xca,0x3d,0xe7,0x83,0xa6,0xca,0x32,0x98,0x65,0xb6,0x57,0xae,0x0d,0x3c,0xd2,0x31};
    static std::uint8_t sum33[32]    = {0x08,0x23,0x10,0x62,0xce,0xe8,0x48,0xa1,0xfc,0x75,0x40,0xbf,0xf8,0x30,0x7e,0x26,0x42,0xf9,0x43,0xd4,0x16,0x8d,0xb2,0xe8,0x1a,0xbf,0x3c,0x11,0x87,0x8b,0x66,0x45};
    sm9_fp_from_bytes(augend, augend33);
    sm9_fp_from_bytes(addend, addend33);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum33, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend34[32] = {0x71,0xef,0x73,0x2c,0x9d,0xc0,0xee,0xd2,0xa0,0x0a,0x60,0x83,0x3d,0xc4,0xbc,0xb9,0xa5,0xba,0xfe,0x29,0xe6,0xd0,0x3f,0xd1,0x70,0xc7,0xb4,0xcc,0xd6,0x3c,0x3d,0xbc};
    static std::uint8_t addend34[32] = {0x27,0xea,0x6d,0x0b,0x84,0x86,0xe1,0x28,0x11,0xd2,0x80,0xa9,0x7d,0xfc,0xd1,0x1e,0x8b,0x4f,0x4c,0x0d,0x17,0xf1,0x74,0xc7,0xb7,0x0a,0x43,0x5f,0xef,0xf6,0xc2,0xbe};
    static std::uint8_t sum34[32]    = {0x99,0xd9,0xe0,0x38,0x22,0x47,0xcf,0xfa,0xb1,0xdc,0xe1,0x2c,0xbb,0xc1,0x8d,0xd8,0x31,0x0a,0x4a,0x36,0xfe,0xc1,0xb4,0x99,0x27,0xd1,0xf8,0x2c,0xc6,0x33,0x00,0x7a};
    sm9_fp_from_bytes(augend, augend34);
    sm9_fp_from_bytes(addend, addend34);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum34, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend35[32] = {0x2f,0x88,0x10,0x80,0xd6,0x75,0x9b,0x25,0xad,0xf1,0xd4,0xce,0xab,0x1d,0x6a,0x9c,0x51,0x81,0xca,0x50,0x27,0xf3,0x3c,0x6f,0x77,0x58,0x90,0x1c,0x61,0xb7,0x2c,0x5a};
    static std::uint8_t addend35[32] = {0x5d,0xde,0x7b,0xdc,0xd1,0x3f,0x40,0xd1,0xad,0x87,0xad,0x57,0x8d,0xb7,0xa7,0xe1,0xa1,0xc7,0xbb,0x10,0x49,0x84,0xe4,0x9a,0x7b,0x9e,0xf3,0x0d,0xb8,0x08,0x78,0x0d};
    static std::uint8_t sum35[32]    = {0x8d,0x66,0x8c,0x5d,0xa7,0xb4,0xdb,0xf7,0x5b,0x79,0x82,0x26,0x38,0xd5,0x12,0x7d,0xf3,0x49,0x85,0x60,0x71,0x78,0x21,0x09,0xf2,0xf7,0x83,0x2a,0x19,0xbf,0xa4,0x67};
    sm9_fp_from_bytes(augend, augend35);
    sm9_fp_from_bytes(addend, addend35);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum35, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend36[32] = {0x2c,0xaf,0xd0,0x73,0x7d,0xe4,0xf2,0xa8,0x71,0x67,0x44,0xca,0x24,0x17,0x86,0xdc,0xd0,0x59,0xc3,0xfb,0x32,0x3c,0x2b,0xe4,0x21,0xe5,0xd7,0x23,0x33,0x50,0x35,0x7c};
    static std::uint8_t addend36[32] = {0x85,0x8e,0x36,0x8f,0xa0,0x87,0x75,0xd7,0xb1,0x22,0xd3,0x55,0xb2,0x70,0xbf,0x54,0x9b,0xfc,0x25,0x07,0x18,0xda,0x5d,0xf6,0x2f,0x33,0x90,0x0f,0x4e,0x1a,0x7d,0x51};
    static std::uint8_t sum36[32]    = {0xb2,0x3e,0x07,0x03,0x1e,0x6c,0x68,0x80,0x22,0x8a,0x18,0x1f,0xd6,0x88,0x46,0x31,0x6c,0x55,0xe9,0x02,0x4b,0x16,0x89,0xda,0x51,0x19,0x67,0x32,0x81,0x6a,0xb2,0xcd};
    sm9_fp_from_bytes(augend, augend36);
    sm9_fp_from_bytes(addend, addend36);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum36, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend37[32] = {0x46,0xa9,0x81,0x2d,0x03,0xfa,0x4f,0xb8,0x97,0xbc,0x45,0x14,0xdb,0xc6,0x98,0x1b,0x08,0x8a,0x75,0x3c,0x30,0xb1,0x50,0x8a,0x34,0x2e,0xf5,0x91,0x18,0x7f,0x61,0x6f};
    static std::uint8_t addend37[32] = {0xb5,0x36,0xfa,0x52,0x32,0xa6,0x37,0x96,0x90,0xaa,0xfe,0x19,0x22,0x65,0xdf,0xc3,0x5e,0x9e,0x5f,0x10,0x3f,0xb9,0x55,0x9d,0xe1,0x9d,0x9c,0xd1,0xf3,0x87,0xbc,0xb8};
    static std::uint8_t sum37[32]    = {0x45,0xa0,0x7b,0x7f,0x33,0xfc,0xe0,0x5d,0x52,0x63,0x97,0xde,0x08,0x9d,0xb0,0x99,0x45,0x36,0x41,0x01,0x55,0xef,0xb7,0x4c,0x30,0x5c,0xf7,0x3b,0x28,0xb5,0xd8,0xaa};
    sm9_fp_from_bytes(augend, augend37);
    sm9_fp_from_bytes(addend, addend37);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum37, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend38[32] = {0x05,0x27,0x71,0xdf,0x3a,0xd7,0xe5,0x3b,0xde,0x5d,0x29,0x01,0x56,0x58,0x0f,0xd1,0x12,0x73,0x80,0xf1,0xef,0x9b,0x04,0x2b,0x18,0x96,0x34,0xd1,0x46,0x3d,0x6e,0x14};
    static std::uint8_t addend38[32] = {0x78,0xc4,0xdb,0x13,0xa0,0xf8,0xb8,0x6c,0x7f,0x55,0x01,0x0c,0x01,0x04,0x74,0xab,0x95,0x36,0x1b,0x64,0xc1,0x79,0xc2,0x57,0xb2,0x43,0x50,0xad,0x63,0x11,0xdd,0xc6};
    static std::uint8_t sum38[32]    = {0x7d,0xec,0x4c,0xf2,0xdb,0xd0,0x9d,0xa8,0x5d,0xb2,0x2a,0x0d,0x57,0x5c,0x84,0x7c,0xa7,0xa9,0x9c,0x56,0xb1,0x14,0xc6,0x82,0xca,0xd9,0x85,0x7e,0xa9,0x4f,0x4b,0xda};
    sm9_fp_from_bytes(augend, augend38);
    sm9_fp_from_bytes(addend, addend38);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum38, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend39[32] = {0x04,0x74,0x8a,0x8d,0xce,0x78,0xdc,0xcd,0xd3,0xed,0x46,0x38,0x42,0x89,0x57,0xd0,0x62,0xa2,0x1e,0x56,0x67,0x67,0x81,0x13,0xfc,0x98,0xd5,0x2b,0x5f,0xdc,0xb2,0xed};
    static std::uint8_t addend39[32] = {0x27,0x84,0xc3,0x77,0xaf,0x81,0xfb,0x20,0x27,0xf4,0x85,0x85,0x4f,0x05,0x82,0x51,0x3b,0x4c,0x0d,0xea,0xa3,0x16,0xfa,0x58,0x28,0xc9,0x48,0x81,0x82,0xda,0x2b,0x92};
    static std::uint8_t sum39[32]    = {0x2b,0xf9,0x4e,0x05,0x7d,0xfa,0xd7,0xed,0xfb,0xe1,0xcb,0xbd,0x91,0x8e,0xda,0x21,0x9d,0xee,0x2c,0x41,0x0a,0x7e,0x7b,0x6c,0x25,0x62,0x1d,0xac,0xe2,0xb6,0xde,0x7f};
    sm9_fp_from_bytes(augend, augend39);
    sm9_fp_from_bytes(addend, addend39);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum39, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend40[32] = {0x42,0x3c,0x56,0xd8,0xb4,0xcd,0xa7,0x0a,0x34,0xa6,0x2c,0x17,0x6f,0x4b,0x49,0x0c,0xe0,0xdf,0x84,0x51,0x5f,0xbd,0xdb,0xe2,0x0d,0xd4,0x26,0xf7,0xbd,0x5b,0x58,0x74};
    static std::uint8_t addend40[32] = {0x04,0x53,0x76,0x96,0xbe,0x8a,0xe5,0x41,0xb6,0xb0,0x72,0xa0,0xed,0x82,0x76,0x1d,0x56,0x59,0x39,0xcd,0x0b,0x46,0x7b,0x4a,0x3b,0x01,0x7d,0x30,0xdb,0xb7,0x6b,0x04};
    static std::uint8_t sum40[32]    = {0x46,0x8f,0xcd,0x6f,0x73,0x58,0x8c,0x4b,0xeb,0x56,0x9e,0xb8,0x5c,0xcd,0xbf,0x2a,0x37,0x38,0xbe,0x1e,0x6b,0x04,0x57,0x2c,0x48,0xd5,0xa4,0x28,0x99,0x12,0xc3,0x78};
    sm9_fp_from_bytes(augend, augend40);
    sm9_fp_from_bytes(addend, addend40);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum40, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend41[32] = {0x7b,0x62,0x23,0x18,0x88,0xb6,0x62,0x76,0xd6,0x94,0x85,0x13,0x59,0x7d,0x50,0x9b,0x05,0xd0,0x4a,0x3c,0x58,0x4e,0x4c,0x4b,0xa7,0xd9,0x86,0xde,0x38,0x76,0x6e,0xf6};
    static std::uint8_t addend41[32] = {0xa4,0x9f,0x3e,0x3a,0xa8,0x00,0x6e,0x55,0x80,0x4f,0xed,0x01,0x6c,0x49,0x61,0xad,0x98,0xb1,0x40,0x03,0x39,0xf3,0xb0,0x5c,0x46,0x02,0x41,0xdf,0x98,0x99,0x0e,0x89};
    static std::uint8_t sum41[32]    = {0x69,0xc1,0x61,0x53,0x2e,0x13,0x29,0xda,0x80,0xe0,0xc6,0xc4,0xd0,0x37,0xeb,0x03,0x7c,0x8e,0xf6,0xf4,0x77,0xc7,0x0d,0xcc,0x08,0x6c,0x2d,0x95,0xed,0xbe,0x38,0x02};
    sm9_fp_from_bytes(augend, augend41);
    sm9_fp_from_bytes(addend, addend41);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum41, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend42[32] = {0x42,0x51,0x50,0xcb,0xb2,0x33,0xee,0xe7,0xdb,0x98,0xa7,0x1f,0x21,0x6c,0xfe,0xa7,0x40,0xec,0xec,0x2d,0xf4,0xbb,0x26,0x46,0xf4,0xba,0x70,0x37,0xe3,0x4c,0x61,0xea};
    static std::uint8_t addend42[32] = {0x1b,0x82,0x44,0x23,0x2e,0xfd,0x2e,0xc4,0x54,0x2d,0x50,0x00,0xb0,0xa5,0xca,0x1e,0x43,0x84,0xb4,0xc4,0xac,0x8c,0x71,0x86,0x49,0x50,0x8b,0x7e,0x70,0x6e,0x7c,0x35};
    static std::uint8_t sum42[32]    = {0x5d,0xd3,0x94,0xee,0xe1,0x31,0x1d,0xac,0x2f,0xc5,0xf7,0x1f,0xd2,0x12,0xc8,0xc5,0x84,0x71,0xa0,0xf2,0xa1,0x47,0x97,0xcd,0x3e,0x0a,0xfb,0xb6,0x53,0xba,0xde,0x1f};
    sm9_fp_from_bytes(augend, augend42);
    sm9_fp_from_bytes(addend, addend42);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum42, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend43[32] = {0x82,0x04,0x92,0xc5,0x95,0x7a,0x61,0xaa,0x2b,0xab,0x0e,0x44,0x87,0xbd,0xdb,0x4e,0x6f,0x00,0x8d,0x8d,0xb0,0xe3,0xe0,0x52,0x66,0x79,0xb2,0xa5,0x08,0x0d,0xb8,0xbc};
    static std::uint8_t addend43[32] = {0x17,0x09,0x1c,0x59,0x8a,0x82,0x8b,0xc2,0xb1,0x7c,0xdb,0x2b,0xa7,0x78,0x3e,0x93,0x23,0xa6,0x88,0xf9,0xbc,0xc1,0x70,0x83,0xc4,0xeb,0xce,0xde,0xfa,0xf5,0x37,0x5a};
    static std::uint8_t sum43[32]    = {0x99,0x0d,0xaf,0x1f,0x1f,0xfc,0xed,0x6c,0xdd,0x27,0xe9,0x70,0x2f,0x36,0x19,0xe1,0x92,0xa7,0x16,0x87,0x6d,0xa5,0x50,0xd6,0x2b,0x65,0x81,0x84,0x03,0x02,0xf0,0x16};
    sm9_fp_from_bytes(augend, augend43);
    sm9_fp_from_bytes(addend, addend43);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum43, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend44[32] = {0x6b,0x8f,0x25,0x33,0xb7,0x8f,0x97,0x0e,0x81,0x30,0xec,0x27,0x00,0x14,0x72,0x94,0xe8,0x15,0x96,0xc9,0xef,0x2f,0xf9,0xaf,0xa4,0x45,0xb9,0x77,0xe3,0x3c,0x76,0x7a};
    static std::uint8_t addend44[32] = {0x05,0x60,0x81,0xed,0x52,0xba,0xe5,0x24,0x16,0xb1,0xf9,0xa9,0x44,0x99,0x8b,0xb3,0xaf,0xdb,0xa8,0x58,0x39,0xd6,0x7d,0x47,0x5c,0x9c,0x5f,0x13,0x35,0xe6,0x80,0x52};
    static std::uint8_t sum44[32]    = {0x70,0xef,0xa7,0x21,0x0a,0x4a,0x7c,0x32,0x97,0xe2,0xe5,0xd0,0x44,0xad,0xfe,0x48,0x97,0xf1,0x3f,0x22,0x29,0x06,0x76,0xf7,0x00,0xe2,0x18,0x8b,0x19,0x22,0xf6,0xcc};
    sm9_fp_from_bytes(augend, augend44);
    sm9_fp_from_bytes(addend, addend44);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum44, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend45[32] = {0x17,0xbe,0xdf,0x8f,0x55,0xa6,0x0e,0x36,0x00,0x60,0x79,0x07,0x25,0x6e,0x22,0x99,0xec,0x7c,0x83,0x8d,0xc6,0x67,0x67,0x98,0x4b,0x00,0xbb,0x93,0x55,0xe4,0x05,0x2e};
    static std::uint8_t addend45[32] = {0x49,0x4a,0xa6,0x12,0x2e,0x07,0x52,0xaa,0x03,0xb2,0x6a,0x0b,0x22,0x2e,0xd8,0x76,0xe6,0x76,0x32,0x4d,0x84,0x01,0x99,0x8f,0xe9,0x60,0x6c,0x57,0x78,0xe3,0x39,0xd2};
    static std::uint8_t sum45[32]    = {0x61,0x09,0x85,0xa1,0x83,0xad,0x60,0xe0,0x04,0x12,0xe3,0x12,0x47,0x9c,0xfb,0x10,0xd2,0xf2,0xb5,0xdb,0x4a,0x69,0x01,0x28,0x34,0x61,0x27,0xea,0xce,0xc7,0x3f,0x00};
    sm9_fp_from_bytes(augend, augend45);
    sm9_fp_from_bytes(addend, addend45);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum45, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend46[32] = {0x46,0x94,0x15,0x5f,0x3e,0xdc,0x2d,0x24,0xd1,0xeb,0x56,0x68,0x98,0x65,0xa8,0x20,0xbf,0xf3,0xa0,0x2e,0x4d,0x94,0xeb,0x3d,0x55,0xf5,0xe4,0x5b,0xba,0xa7,0x43,0xcf};
    static std::uint8_t addend46[32] = {0x5c,0x59,0xee,0xbd,0xbb,0x7a,0x9b,0x18,0x31,0xd5,0x25,0x5d,0xb0,0x4f,0x4a,0x7b,0xac,0x43,0x64,0x1e,0xb0,0x94,0xf1,0x01,0x03,0xcb,0xb9,0x3f,0xca,0xfa,0xdb,0x0e};
    static std::uint8_t sum46[32]    = {0xa2,0xee,0x04,0x1c,0xfa,0x56,0xc8,0x3d,0x03,0xc0,0x7b,0xc6,0x48,0xb4,0xf2,0x9c,0x6c,0x37,0x04,0x4c,0xfe,0x29,0xdc,0x3e,0x59,0xc1,0x9d,0x9b,0x85,0xa2,0x1e,0xdd};
    sm9_fp_from_bytes(augend, augend46);
    sm9_fp_from_bytes(addend, addend46);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum46, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend47[32] = {0x61,0xc5,0x9f,0xa9,0x42,0x53,0xfd,0x84,0xd4,0x54,0xdf,0xbb,0x9f,0x68,0x2b,0xb2,0x4f,0xf5,0xc1,0x87,0x70,0xcb,0xc6,0x70,0xd7,0x11,0x23,0x35,0xd5,0xc5,0x7a,0x03};
    static std::uint8_t addend47[32] = {0x77,0x92,0xf4,0x30,0x80,0x23,0x98,0x8a,0xc7,0x65,0xc9,0xdd,0x4c,0x43,0x60,0xa8,0xc6,0x8c,0x7d,0x3a,0x40,0x34,0x57,0x00,0x5c,0x6a,0x9c,0xb2,0x12,0x05,0xfd,0x8f};
    static std::uint8_t sum47[32]    = {0x23,0x18,0x93,0xd9,0xbf,0xd3,0xef,0x1d,0xc5,0xb6,0xfe,0x48,0xf6,0x1c,0xc5,0x15,0xf4,0x8f,0xab,0x76,0x96,0x85,0x2e,0x95,0x4e,0x0c,0x24,0xc0,0x04,0x7a,0x32,0x15};
    sm9_fp_from_bytes(augend, augend47);
    sm9_fp_from_bytes(addend, addend47);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum47, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend48[32] = {0x68,0x08,0x4f,0xd2,0xbf,0x46,0xda,0x2c,0x1e,0x28,0x75,0xc7,0x19,0xa6,0x5a,0x70,0x16,0x18,0xb2,0x07,0xcc,0xa8,0xbb,0x99,0xd9,0xb4,0x33,0xb3,0x99,0xe3,0xd5,0x06};
    static std::uint8_t addend48[32] = {0x16,0xf8,0xbf,0x49,0xdd,0xc5,0xc6,0x14,0x17,0x58,0x84,0x20,0x2d,0xdd,0xfd,0x8c,0x8f,0x81,0xba,0x12,0xb8,0x72,0xa6,0xd2,0xcc,0xbb,0xeb,0xc8,0x1a,0x0c,0xc8,0xbd};
    static std::uint8_t sum48[32]    = {0x7f,0x01,0x0f,0x1c,0x9d,0x0c,0xa0,0x40,0x35,0x80,0xf9,0xe7,0x47,0x84,0x57,0xfc,0xa5,0x9a,0x6c,0x1a,0x85,0x1b,0x62,0x6c,0xa6,0x70,0x1f,0x7b,0xb3,0xf0,0x9d,0xc3};
    sm9_fp_from_bytes(augend, augend48);
    sm9_fp_from_bytes(addend, addend48);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum48, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend49[32] = {0x40,0x00,0x27,0xca,0xd7,0x39,0x3d,0xd8,0x79,0x7d,0xd1,0x73,0x98,0xf7,0x97,0xc9,0x74,0x58,0x55,0x49,0xc8,0x99,0x65,0x4e,0x1d,0x11,0x17,0x0e,0xeb,0x77,0x6e,0xad};
    static std::uint8_t addend49[32] = {0x54,0x90,0x8f,0x4e,0xbd,0x8b,0x8f,0xdb,0x1d,0x9f,0xdc,0x0c,0xfe,0xfa,0xda,0x9c,0x04,0x6c,0x07,0x0f,0x66,0xe8,0xeb,0xac,0x6b,0x23,0x9b,0xda,0x51,0x20,0xdd,0xd8};
    static std::uint8_t sum49[32]    = {0x94,0x90,0xb7,0x19,0x94,0xc4,0xcd,0xb3,0x97,0x1d,0xad,0x80,0x97,0xf2,0x72,0x65,0x78,0xc4,0x5c,0x59,0x2f,0x82,0x50,0xfa,0x88,0x34,0xb2,0xe9,0x3c,0x98,0x4c,0x85};
    sm9_fp_from_bytes(augend, augend49);
    sm9_fp_from_bytes(addend, addend49);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum49, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend50[32] = {0x78,0x27,0xfc,0x94,0x70,0x1a,0xec,0x4c,0x5f,0xcf,0x17,0xe7,0xb3,0xb6,0xbc,0x33,0x37,0x34,0x54,0x7e,0x6b,0x40,0xfb,0xa9,0x77,0x79,0x99,0x46,0x3c,0xdc,0x5e,0xb7};
    static std::uint8_t addend50[32] = {0xb4,0xc7,0xaf,0xae,0xb9,0xb7,0xb7,0xce,0xd3,0x9f,0x8d,0x3f,0x9f,0x48,0xe2,0x56,0x46,0x25,0xf2,0x47,0x8b,0x5f,0xac,0x37,0x53,0xeb,0x14,0xf9,0x13,0x13,0xb7,0xbe};
    static std::uint8_t sum50[32]    = {0x76,0xaf,0xac,0x43,0x27,0x2e,0xfd,0x29,0x5d,0x6a,0xf9,0xd7,0x5d,0x70,0xd7,0x44,0x5b,0x67,0xb3,0x7a,0xdc,0x25,0xb9,0x04,0xe5,0xf5,0x13,0x17,0x6c,0x9e,0xd0,0xf8};
    sm9_fp_from_bytes(augend, augend50);
    sm9_fp_from_bytes(addend, addend50);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum50, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend51[32] = {0x35,0xf4,0xe5,0x48,0x4a,0xf7,0x18,0xd4,0xfb,0x06,0x32,0x45,0x6a,0xcf,0x96,0x61,0xbc,0x9e,0x7a,0x70,0x80,0x71,0x2e,0x2b,0x48,0x75,0xcd,0x17,0xaa,0x6a,0xb4,0xa4};
    static std::uint8_t addend51[32] = {0x04,0x51,0xbf,0x83,0x82,0xc3,0xc1,0xe7,0x7f,0x59,0xd6,0xae,0x23,0x14,0xf0,0xd9,0xaa,0x7b,0x1a,0x08,0x88,0x84,0x17,0x60,0xfb,0x19,0x01,0x52,0xa5,0x6f,0x3c,0xa3};
    static std::uint8_t sum51[32]    = {0x3a,0x46,0xa4,0xcb,0xcd,0xba,0xda,0xbc,0x7a,0x60,0x08,0xf3,0x8d,0xe4,0x87,0x3b,0x67,0x19,0x94,0x79,0x08,0xf5,0x45,0x8c,0x43,0x8e,0xce,0x6a,0x4f,0xd9,0xf1,0x47};
    sm9_fp_from_bytes(augend, augend51);
    sm9_fp_from_bytes(addend, addend51);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum51, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend52[32] = {0x79,0x3a,0xfb,0xde,0xd0,0xa5,0x0a,0x17,0xf7,0x15,0x3f,0x36,0xe5,0xe6,0x42,0x84,0x7a,0xd5,0x4c,0xf7,0x3f,0x84,0x80,0xd8,0x64,0x98,0x4d,0x0f,0xf7,0xd7,0x6f,0xe9};
    static std::uint8_t addend52[32] = {0x79,0x71,0x31,0x32,0xa2,0x41,0xc3,0x45,0x4b,0x80,0x65,0x3c,0x19,0xb8,0x5a,0x8b,0x21,0xa3,0x36,0xd5,0x5f,0xab,0xe3,0xe8,0xe5,0x61,0xf4,0x8c,0x05,0xd3,0xb3,0x7a};
    static std::uint8_t sum52[32]    = {0x3c,0x6c,0x2d,0x11,0x70,0x43,0x26,0x6b,0x6c,0x91,0xf9,0x23,0x0a,0x0f,0xd5,0xca,0x7a,0x85,0xf0,0x81,0x84,0xb5,0x75,0xe5,0x64,0x8a,0xa6,0x74,0x1a,0x59,0xdd,0xe6};
    sm9_fp_from_bytes(augend, augend52);
    sm9_fp_from_bytes(addend, addend52);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum52, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend53[32] = {0x20,0x2c,0x70,0xc2,0xe7,0x2e,0x37,0x83,0xda,0xda,0x4f,0x4a,0x15,0x6c,0x9a,0x0c,0x17,0xa7,0xf1,0xf0,0x2b,0x26,0x70,0x84,0xab,0x94,0xd8,0xe7,0xbc,0x83,0xad,0xa5};
    static std::uint8_t addend53[32] = {0x43,0x88,0x7a,0xe4,0xb3,0xac,0xb3,0x16,0x9f,0x03,0x4e,0xe4,0xc7,0xaf,0x64,0x99,0x6f,0xc6,0x31,0x4f,0x5a,0x02,0xb4,0x2d,0x46,0xaf,0x77,0x7a,0xa4,0x59,0xe7,0x75};
    static std::uint8_t sum53[32]    = {0x63,0xb4,0xeb,0xa7,0x9a,0xda,0xea,0x9a,0x79,0xdd,0x9e,0x2e,0xdd,0x1b,0xfe,0xa5,0x87,0x6e,0x23,0x3f,0x85,0x29,0x24,0xb1,0xf2,0x44,0x50,0x62,0x60,0xdd,0x95,0x1a};
    sm9_fp_from_bytes(augend, augend53);
    sm9_fp_from_bytes(addend, addend53);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum53, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend54[32] = {0x49,0x7a,0xb9,0x66,0xc7,0xa3,0x74,0x54,0xe0,0x2f,0xd0,0x9f,0xa0,0xcc,0xe6,0xd4,0xd9,0xb5,0x89,0x53,0x07,0xbb,0xd7,0x3d,0xc0,0x0c,0x89,0x25,0x95,0xa2,0x5a,0xee};
    static std::uint8_t addend54[32] = {0x87,0x2e,0xf5,0x5f,0xb1,0x22,0xf2,0xa1,0xa7,0x3e,0x05,0x1c,0xc3,0xb3,0x56,0x21,0xfb,0xba,0xf1,0xfb,0x56,0xe6,0x42,0x91,0x3b,0x82,0x09,0xdb,0x22,0x86,0x53,0x00};
    static std::uint8_t sum54[32]    = {0x1a,0x69,0xae,0xc6,0x76,0x22,0xc0,0x04,0xb1,0x6a,0x2a,0x6c,0x6e,0xf1,0x75,0xb1,0xb3,0x7d,0xe8,0x03,0x44,0x27,0x2a,0xf3,0x16,0x1e,0xf7,0xd8,0xd4,0xd7,0x68,0x71};
    sm9_fp_from_bytes(augend, augend54);
    sm9_fp_from_bytes(addend, addend54);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum54, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend55[32] = {0x49,0x6a,0x1c,0xb3,0xd5,0x4c,0xc0,0xbd,0x16,0xb6,0x19,0x51,0x99,0xb5,0x0f,0xd1,0x64,0xef,0xfb,0x36,0x65,0x3b,0xdf,0xc1,0xa9,0x5f,0x58,0xf1,0xb4,0x62,0x69,0xe5};
    static std::uint8_t addend55[32] = {0x84,0x24,0xbb,0xbb,0x79,0x2b,0x91,0x0c,0x17,0x4b,0xff,0x14,0xa0,0x7a,0x4b,0xf1,0xfa,0x27,0x95,0x09,0xdc,0xc0,0xdf,0x85,0x95,0xb7,0xff,0xf2,0x29,0xd4,0x3f,0xad};
    static std::uint8_t sum55[32]    = {0x17,0x4e,0xd8,0x6f,0x4b,0xd4,0xaa,0xd7,0x57,0xfe,0x6d,0x16,0x44,0xa0,0x94,0x7e,0x3d,0x24,0xfc,0xf5,0x27,0x81,0xd0,0x6b,0x59,0xa7,0xbd,0xbb,0xfa,0xe5,0x64,0x15};
    sm9_fp_from_bytes(augend, augend55);
    sm9_fp_from_bytes(addend, addend55);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum55, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend56[32] = {0x23,0x92,0x39,0xb2,0x76,0x9d,0x3b,0xa2,0x2e,0x23,0x5c,0x4a,0x9c,0xd5,0x28,0x89,0x23,0x44,0xe4,0x14,0xf5,0x94,0x57,0x43,0xee,0x8d,0xa1,0x13,0x76,0x58,0xc6,0x32};
    static std::uint8_t addend56[32] = {0x4f,0x9f,0xb5,0x25,0xfe,0xfd,0x8f,0xde,0xf0,0xea,0x41,0x98,0x1a,0x18,0xca,0x12,0x88,0x07,0xcd,0xdd,0x8f,0x8a,0x9a,0xe6,0xb4,0xd6,0xaf,0xcb,0x1b,0x58,0x74,0x2f};
    static std::uint8_t sum56[32]    = {0x73,0x31,0xee,0xd8,0x75,0x9a,0xcb,0x81,0x1f,0x0d,0x9d,0xe2,0xb6,0xed,0xf2,0x9b,0xab,0x4c,0xb1,0xf2,0x85,0x1e,0xf2,0x2a,0xa3,0x64,0x50,0xde,0x91,0xb1,0x3a,0x61};
    sm9_fp_from_bytes(augend, augend56);
    sm9_fp_from_bytes(addend, addend56);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum56, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend57[32] = {0x5a,0xa9,0x6d,0xb4,0x22,0x2d,0x82,0xa7,0x58,0xc4,0x7a,0x28,0xde,0xa6,0x4b,0x27,0x73,0x6b,0x72,0x42,0xe5,0xfb,0x9c,0x5a,0xc8,0xd4,0x51,0x69,0x77,0x38,0x6d,0x41};
    static std::uint8_t addend57[32] = {0x02,0x77,0x65,0xe3,0x63,0x21,0xf2,0x6c,0x15,0x24,0x2d,0x7d,0xb7,0x46,0x6d,0x8f,0x6e,0x3c,0x38,0xed,0x9f,0xc3,0xc3,0x22,0xf0,0x71,0x7c,0x4e,0x7b,0x41,0x44,0x2c};
    static std::uint8_t sum57[32]    = {0x5d,0x20,0xd3,0x97,0x85,0x4f,0x75,0x13,0x6d,0xe8,0xa7,0xa6,0x95,0xec,0xb8,0xb6,0xe1,0xa7,0xab,0x30,0x85,0xbf,0x5f,0x7d,0xb9,0x45,0xcd,0xb7,0xf2,0x79,0xb1,0x6d};
    sm9_fp_from_bytes(augend, augend57);
    sm9_fp_from_bytes(addend, addend57);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum57, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend58[32] = {0x09,0x79,0x92,0xa3,0x56,0x3c,0xa1,0x0b,0xf5,0xe4,0x26,0x5b,0x24,0x06,0xa3,0xf6,0x75,0xf3,0xef,0xa3,0xc2,0xb0,0x9b,0x86,0x57,0x3f,0x59,0x48,0x3d,0x6e,0xff,0xe4};
    static std::uint8_t addend58[32] = {0x2a,0xa5,0xc6,0x4e,0xc4,0xff,0x56,0x56,0xa3,0x23,0xa3,0x6e,0xcf,0xac,0xbd,0x09,0x6f,0xed,0xed,0x3c,0xdf,0x14,0x5e,0x1e,0x11,0x27,0x0f,0xa5,0xe2,0x27,0x4d,0x61};
    static std::uint8_t sum58[32]    = {0x34,0x1f,0x58,0xf2,0x1b,0x3b,0xf7,0x62,0x99,0x07,0xc9,0xc9,0xf3,0xb3,0x60,0xff,0xe5,0xe1,0xdc,0xe0,0xa1,0xc4,0xf9,0xa4,0x68,0x66,0x68,0xee,0x1f,0x96,0x4d,0x45};
    sm9_fp_from_bytes(augend, augend58);
    sm9_fp_from_bytes(addend, addend58);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum58, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend59[32] = {0x51,0x89,0xa5,0xe1,0x85,0xe6,0x11,0xfc,0x4e,0x36,0x10,0x53,0x58,0x79,0x54,0xa2,0xee,0x88,0x0e,0x78,0x4d,0xbc,0x97,0xab,0x74,0xed,0x82,0xf0,0x9d,0xcc,0xba,0x36};
    static std::uint8_t addend59[32] = {0x5e,0x9c,0x81,0xad,0xd7,0x97,0xdb,0x5b,0xdb,0x93,0x26,0xf5,0x55,0x30,0x3d,0x2a,0xb7,0xd1,0xf8,0xc6,0xf2,0x7c,0x46,0xcf,0xf2,0x18,0x1f,0xbf,0xef,0xad,0x5d,0x04};
    static std::uint8_t sum59[32]    = {0xb0,0x26,0x27,0x8f,0x5d,0x7d,0xed,0x58,0x29,0xc9,0x37,0x48,0xad,0xa9,0x91,0xcd,0xa6,0x5a,0x07,0x3f,0x40,0x38,0xde,0x7b,0x67,0x05,0xa2,0xb0,0x8d,0x7a,0x17,0x3a};
    sm9_fp_from_bytes(augend, augend59);
    sm9_fp_from_bytes(addend, addend59);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum59, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend60[32] = {0x85,0xf3,0xa8,0xa2,0x26,0xf9,0xb4,0xfa,0xc3,0x6a,0x0e,0x2d,0x4d,0x93,0xd3,0xc0,0xf9,0x86,0x13,0xcc,0x32,0xee,0x56,0x8f,0xd5,0x77,0x94,0x1c,0xd9,0xcd,0xaf,0x7a};
    static std::uint8_t addend60[32] = {0x82,0xcd,0xe3,0x0d,0x92,0x61,0x10,0x67,0xd2,0xdb,0x7e,0xec,0x68,0x9b,0x7c,0xf9,0xeb,0x99,0xb4,0x13,0x67,0xf4,0xa6,0x1c,0xe1,0x13,0x27,0x6c,0xc8,0x6c,0xab,0x5e};
    static std::uint8_t sum60[32]    = {0x52,0x81,0x8b,0xaf,0xb6,0xb7,0x1e,0x70,0xc0,0x41,0xe1,0xc9,0xc0,0xa0,0x89,0x75,0xc3,0x2d,0x34,0x94,0x80,0x68,0x0d,0xd0,0xd1,0x1b,0x20,0x61,0xbe,0xe9,0x15,0x5b};
    sm9_fp_from_bytes(augend, augend60);
    sm9_fp_from_bytes(addend, addend60);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum60, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend61[32] = {0x01,0xa3,0x76,0xa8,0xae,0xa0,0xf8,0x6f,0x3c,0xd8,0x09,0x36,0x78,0x7b,0x7d,0xeb,0x17,0x41,0xff,0x26,0x9a,0x73,0x2e,0xaf,0xa5,0xce,0xd1,0xd7,0x2b,0xf2,0x4e,0xc0};
    static std::uint8_t addend61[32] = {0x17,0x13,0x0d,0xa7,0xaf,0x6d,0x69,0x08,0x70,0x83,0xe1,0xfa,0x83,0xc7,0x96,0xa2,0x02,0xb1,0x37,0x84,0xbf,0xdc,0x53,0xf9,0xf8,0x89,0x47,0xc1,0x45,0x9b,0x87,0xbe};
    static std::uint8_t sum61[32]    = {0x18,0xb6,0x84,0x50,0x5e,0x0e,0x61,0x77,0xad,0x5b,0xeb,0x30,0xfc,0x43,0x14,0x8d,0x19,0xf3,0x36,0xab,0x5a,0x4f,0x82,0xa9,0x9e,0x58,0x19,0x98,0x71,0x8d,0xd6,0x7e};
    sm9_fp_from_bytes(augend, augend61);
    sm9_fp_from_bytes(addend, addend61);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum61, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend62[32] = {0x3f,0xc5,0xf6,0xf2,0x1d,0x92,0xc0,0x22,0xc7,0xe0,0x68,0xa3,0x59,0xbe,0x5e,0xe9,0x43,0xbf,0x14,0xff,0xc5,0xaf,0x09,0xbc,0xbc,0x84,0x4e,0x03,0x95,0x1e,0xfc,0xc7};
    static std::uint8_t addend62[32] = {0x17,0xaa,0x66,0x01,0x9e,0x7c,0x81,0xbe,0xa0,0x3c,0xb6,0xdc,0xca,0x4e,0x3a,0x85,0xa6,0xb0,0x77,0xcd,0x6e,0xb4,0x37,0x21,0x5d,0x4a,0x3e,0x24,0xa2,0xc8,0xe0,0x54};
    static std::uint8_t sum62[32]    = {0x57,0x70,0x5c,0xf3,0xbc,0x0f,0x41,0xe1,0x68,0x1d,0x1f,0x80,0x24,0x0c,0x99,0x6e,0xea,0x6f,0x8c,0xcd,0x34,0x63,0x40,0xde,0x19,0xce,0x8c,0x28,0x37,0xe7,0xdd,0x1b};
    sm9_fp_from_bytes(augend, augend62);
    sm9_fp_from_bytes(addend, addend62);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum62, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend63[32] = {0x39,0x52,0x02,0xe5,0xf9,0x87,0xcb,0x32,0xd1,0xe4,0xdb,0x3c,0xec,0x7a,0xc2,0xed,0x46,0xbf,0xde,0xc8,0x7e,0xce,0xa0,0x9c,0xb8,0x1c,0xe3,0x32,0x84,0x57,0xed,0xe7};
    static std::uint8_t addend63[32] = {0x0a,0xb6,0xb5,0x76,0x71,0x07,0x55,0x71,0x62,0xee,0xde,0x0b,0xee,0xd9,0x8f,0x33,0x4e,0x25,0x77,0x41,0xb6,0xc5,0x13,0x4c,0x16,0x9b,0x16,0x28,0x75,0x23,0x15,0x77};
    static std::uint8_t sum63[32]    = {0x44,0x08,0xb8,0x5c,0x6a,0x8f,0x20,0xa4,0x34,0xd3,0xb9,0x48,0xdb,0x54,0x52,0x20,0x94,0xe5,0x56,0x0a,0x35,0x93,0xb3,0xe8,0xce,0xb7,0xf9,0x5a,0xf9,0x7b,0x03,0x5e};
    sm9_fp_from_bytes(augend, augend63);
    sm9_fp_from_bytes(addend, addend63);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum63, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend64[32] = {0xa2,0x5e,0x17,0x51,0x88,0xee,0x38,0xba,0xbc,0x0f,0x43,0xc2,0x7a,0x93,0x29,0x93,0x20,0x7f,0xd7,0xec,0x89,0x78,0x8f,0x31,0x20,0x43,0x5a,0x87,0x4b,0xad,0x87,0x8e};
    static std::uint8_t addend64[32] = {0x77,0xf7,0x41,0x6c,0xb7,0x1c,0x61,0xde,0xc6,0x55,0xb8,0x16,0xfe,0x24,0x9a,0xbc,0x50,0xf3,0x1d,0x99,0x40,0xc7,0xf3,0xe3,0xef,0xbf,0x6a,0xcd,0xfd,0xfa,0xb0,0xd9};
    static std::uint8_t sum64[32]    = {0x64,0x15,0x58,0xbe,0x3d,0x66,0xf3,0xa7,0xac,0x61,0x50,0x89,0x83,0x28,0xfd,0x0a,0x4f,0x80,0x62,0x3a,0xaf,0xc5,0x94,0x39,0x2a,0x93,0x2a,0x2d,0x66,0x56,0xf2,0xea};
    sm9_fp_from_bytes(augend, augend64);
    sm9_fp_from_bytes(addend, addend64);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum64, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend65[32] = {0x0f,0xb1,0x17,0xad,0x34,0x53,0xc9,0x1c,0x54,0x9c,0x56,0xb1,0x69,0x68,0x03,0x0f,0xc3,0x39,0xb5,0x31,0xdb,0x61,0x29,0x96,0x29,0xb6,0xdc,0x88,0xae,0x55,0xcd,0x7f};
    static std::uint8_t addend65[32] = {0x11,0x10,0x79,0xdc,0x3f,0xc0,0x78,0x0a,0x1b,0x54,0xa9,0xfb,0xa4,0x7d,0x07,0xf2,0x83,0x20,0xb5,0xf2,0xce,0x0c,0xe0,0x8a,0x75,0x69,0x3d,0xb9,0x12,0x10,0x9e,0x44};
    static std::uint8_t sum65[32]    = {0x20,0xc1,0x91,0x89,0x74,0x14,0x41,0x26,0x6f,0xf1,0x00,0xad,0x0d,0xe5,0x0b,0x02,0x46,0x5a,0x6b,0x24,0xa9,0x6e,0x0a,0x20,0x9f,0x20,0x1a,0x41,0xc0,0x66,0x6b,0xc3};
    sm9_fp_from_bytes(augend, augend65);
    sm9_fp_from_bytes(addend, addend65);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum65, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend66[32] = {0x26,0xf3,0xa1,0x57,0xad,0x93,0x48,0x79,0x2e,0x46,0xce,0x41,0x4f,0xb5,0x9a,0x17,0x88,0x67,0x97,0xcb,0xd9,0x25,0x32,0x00,0xfa,0x2d,0x10,0x46,0xf4,0x4a,0xa9,0x27};
    static std::uint8_t addend66[32] = {0x2a,0x15,0x09,0xe4,0xe1,0xcc,0x6c,0xda,0xa6,0x4c,0xa5,0xd0,0xdd,0x0a,0x55,0x82,0xfb,0x53,0x04,0x71,0xcb,0x22,0x0b,0x76,0x5e,0xb9,0xa7,0x76,0x0a,0x59,0x26,0xcd};
    static std::uint8_t sum66[32]    = {0x51,0x08,0xab,0x3c,0x8f,0x5f,0xb5,0x53,0xd4,0x93,0x74,0x12,0x2c,0xbf,0xef,0x9a,0x83,0xba,0x9c,0x3d,0xa4,0x47,0x3d,0x77,0x58,0xe6,0xb7,0xbc,0xfe,0xa3,0xcf,0xf4};
    sm9_fp_from_bytes(augend, augend66);
    sm9_fp_from_bytes(addend, addend66);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum66, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend67[32] = {0x1c,0x25,0x54,0xfa,0x7f,0xe0,0x4f,0x5b,0x34,0x18,0xad,0xf7,0x8f,0x99,0xaf,0x53,0x81,0x5f,0xf2,0xdf,0x25,0xf8,0x10,0xa7,0x30,0x3e,0x0f,0xee,0xc7,0xb4,0xc9,0x3f};
    static std::uint8_t addend67[32] = {0x32,0x77,0xa3,0x21,0x3a,0x6b,0x97,0xc1,0x70,0x9b,0xe7,0x3a,0x23,0xc8,0x66,0x93,0x5e,0xe1,0x3e,0xc2,0x7d,0xa5,0x59,0x38,0x25,0x68,0x27,0x9f,0xc8,0x56,0x8b,0x18};
    static std::uint8_t sum67[32]    = {0x4e,0x9c,0xf8,0x1b,0xba,0x4b,0xe7,0x1c,0xa4,0xb4,0x95,0x31,0xb3,0x62,0x15,0xe6,0xe0,0x41,0x31,0xa1,0xa3,0x9d,0x69,0xdf,0x55,0xa6,0x37,0x8e,0x90,0x0b,0x54,0x57};
    sm9_fp_from_bytes(augend, augend67);
    sm9_fp_from_bytes(addend, addend67);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum67, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend68[32] = {0x60,0xb3,0xd0,0x69,0xa8,0xc6,0xdf,0x6a,0x34,0x36,0x62,0x36,0x0d,0xb7,0xa5,0xbb,0x09,0x93,0x35,0xeb,0x5d,0x75,0x01,0xc2,0x99,0xe9,0xf6,0x63,0x00,0xf6,0x64,0xbc};
    static std::uint8_t addend68[32] = {0x13,0x75,0x34,0x51,0x72,0x54,0x3d,0x98,0x8c,0x17,0x38,0xa8,0xa3,0x88,0x29,0x80,0xb9,0xee,0xe6,0xe1,0x79,0xb0,0x57,0x2a,0xdc,0x60,0x78,0xe4,0x56,0xfa,0x53,0x7b};
    static std::uint8_t sum68[32]    = {0x74,0x29,0x04,0xbb,0x1b,0x1b,0x1d,0x02,0xc0,0x4d,0x9a,0xde,0xb1,0x3f,0xcf,0x3b,0xc3,0x82,0x1c,0xcc,0xd7,0x25,0x58,0xed,0x76,0x4a,0x6f,0x47,0x57,0xf0,0xb8,0x37};
    sm9_fp_from_bytes(augend, augend68);
    sm9_fp_from_bytes(addend, addend68);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum68, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend69[32] = {0x76,0xcd,0x70,0x46,0xcb,0xb1,0x98,0x25,0x75,0x34,0xa6,0x0f,0x60,0x16,0x91,0x28,0xab,0x63,0x32,0x8c,0xae,0xaf,0x6f,0xe7,0x32,0x33,0x93,0xce,0xd7,0xec,0xd6,0x2a};
    static std::uint8_t addend69[32] = {0x19,0xda,0x27,0x0d,0x99,0xc2,0x95,0xa7,0x8b,0x39,0x89,0x57,0x3f,0xac,0x88,0x30,0x43,0x7a,0xb3,0xe9,0xa1,0x60,0xb0,0xe6,0xfd,0xb9,0x0a,0xb8,0x66,0xa8,0xae,0xd0};
    static std::uint8_t sum69[32]    = {0x90,0xa7,0x97,0x54,0x65,0x74,0x2d,0xcd,0x00,0x6e,0x2f,0x66,0x9f,0xc3,0x19,0x58,0xee,0xdd,0xe6,0x76,0x50,0x10,0x20,0xce,0x2f,0xec,0x9e,0x87,0x3e,0x95,0x84,0xfa};
    sm9_fp_from_bytes(augend, augend69);
    sm9_fp_from_bytes(addend, addend69);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum69, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend70[32] = {0x71,0x59,0xbf,0x3b,0xac,0x12,0xe3,0xd4,0x90,0x9d,0x87,0xd8,0x60,0xbe,0x06,0x1b,0x8a,0x70,0x00,0xcb,0x86,0x01,0x00,0xe5,0x23,0x87,0xd7,0x0d,0x9d,0xc8,0xdb,0x2b};
    static std::uint8_t addend70[32] = {0x4d,0x91,0x8a,0x7d,0xa3,0x31,0xd7,0x7a,0x01,0x79,0xd0,0xb9,0xbe,0xd1,0x6c,0x5d,0xa0,0x95,0x9d,0x96,0x67,0x2f,0xe3,0x1e,0xda,0x43,0xc6,0x21,0x47,0xde,0x2e,0xce};
    static std::uint8_t sum70[32]    = {0x08,0xab,0x49,0xb9,0x4c,0xa1,0x14,0x5c,0xbc,0x13,0xad,0x42,0x2a,0x00,0xab,0x34,0x09,0x13,0x0b,0x16,0xd2,0xb5,0xf5,0x28,0x18,0x5c,0x02,0x07,0x02,0x55,0xc4,0x7c};
    sm9_fp_from_bytes(augend, augend70);
    sm9_fp_from_bytes(addend, addend70);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum70, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend71[32] = {0x15,0xbd,0xfa,0x65,0xe7,0x82,0xf9,0xc6,0xac,0xd7,0x65,0xaa,0xab,0x32,0x92,0xf6,0x06,0xce,0xfd,0x11,0xb8,0x72,0x7f,0xb5,0x34,0x81,0x25,0x5f,0x97,0x1f,0xd9,0xc3};
    static std::uint8_t addend71[32] = {0x4f,0x4f,0x05,0x7d,0x11,0xab,0x13,0x14,0xa2,0x6e,0x59,0x59,0x45,0xd3,0x38,0x93,0xc5,0x3d,0x7b,0x7b,0x55,0x20,0xdf,0x6f,0xaa,0x5e,0x29,0x08,0xa2,0xb6,0x1d,0x9c};
    static std::uint8_t sum71[32]    = {0x65,0x0c,0xff,0xe2,0xf9,0x2e,0x0c,0xdb,0x4f,0x45,0xbf,0x03,0xf1,0x05,0xcb,0x89,0xcc,0x0c,0x78,0x8d,0x0d,0x93,0x5f,0x24,0xde,0xdf,0x4e,0x68,0x39,0xd5,0xf7,0x5f};
    sm9_fp_from_bytes(augend, augend71);
    sm9_fp_from_bytes(addend, addend71);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum71, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend72[32] = {0x96,0x8a,0x9c,0x8e,0x92,0x6e,0xb6,0x6f,0x03,0x3c,0x65,0xa0,0x23,0x41,0xf7,0x35,0x9c,0x09,0xe3,0x3e,0x34,0x54,0xe9,0x80,0x0b,0xa8,0x05,0xe9,0x9b,0x49,0x04,0x0f};
    static std::uint8_t addend72[32] = {0x36,0x93,0x3c,0xbe,0xf7,0x13,0xde,0x47,0x16,0xcc,0xb9,0xa2,0x04,0x0a,0x35,0x0e,0xc9,0x57,0xef,0x8a,0x71,0xdf,0x33,0x8d,0xa1,0xef,0x49,0xeb,0xcc,0xc5,0xa4,0x33};
    static std::uint8_t sum72[32]    = {0x16,0xdd,0xd9,0x4d,0x86,0xde,0xed,0xc4,0x44,0x05,0x73,0xf2,0x31,0xbd,0x64,0xff,0x43,0x6f,0x3f,0x7d,0x8b,0xb9,0x2e,0x31,0xc8,0x27,0xb4,0xad,0x84,0xbd,0x62,0xc5};
    sm9_fp_from_bytes(augend, augend72);
    sm9_fp_from_bytes(addend, addend72);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum72, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend73[32] = {0x3c,0x53,0x7a,0xfb,0x3c,0x89,0xa6,0xeb,0x81,0xf9,0xc0,0xf7,0x96,0x9f,0x24,0x1e,0xf2,0xb5,0x92,0x6a,0x8c,0x45,0xf2,0x32,0xa0,0x90,0x24,0x0f,0x51,0xaf,0x0b,0x9d};
    static std::uint8_t addend73[32] = {0x2d,0x6b,0x7c,0x5f,0xb2,0x45,0x8a,0xa9,0x0d,0x7f,0xc9,0x96,0xfc,0xec,0xd6,0xf0,0xef,0x0e,0x19,0x0b,0x10,0x8c,0x21,0x23,0x69,0xa0,0x41,0xb6,0x8e,0xb0,0x8b,0xb3};
    static std::uint8_t sum73[32]    = {0x69,0xbe,0xf7,0x5a,0xee,0xcf,0x31,0x94,0x8f,0x79,0x8a,0x8e,0x93,0x8b,0xfb,0x0f,0xe1,0xc3,0xab,0x75,0x9c,0xd2,0x13,0x56,0x0a,0x30,0x65,0xc5,0xe0,0x5f,0x97,0x50};
    sm9_fp_from_bytes(augend, augend73);
    sm9_fp_from_bytes(addend, addend73);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum73, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend74[32] = {0x98,0xe9,0x7a,0x1d,0x25,0xca,0x42,0x8d,0x3f,0xd9,0x59,0xc5,0x34,0xfa,0x00,0x4a,0x44,0xbf,0xec,0xb5,0x5c,0x10,0x5c,0xbc,0x87,0x16,0xb1,0xeb,0x2c,0xcd,0x6d,0x7b};
    static std::uint8_t addend74[32] = {0x34,0xbe,0x2d,0x0f,0x62,0x13,0x1a,0xab,0x31,0x11,0xfb,0xb5,0x35,0x77,0x65,0xf4,0x39,0x97,0xc4,0xa6,0x82,0xc4,0xec,0xf9,0xf3,0x0a,0x59,0x05,0xa9,0x60,0x2f,0x5b};
    static std::uint8_t sum74[32]    = {0x17,0x67,0xa7,0x2c,0x85,0x39,0xb6,0x46,0x9a,0xe7,0xaa,0x2a,0x74,0xe2,0x9e,0xf9,0x5c,0x65,0x1e,0x10,0xc4,0x5a,0x5a,0xda,0x94,0xb1,0x6f,0xc8,0xf2,0xdc,0x57,0x59};
    sm9_fp_from_bytes(augend, augend74);
    sm9_fp_from_bytes(addend, addend74);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum74, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend75[32] = {0x36,0x29,0xfe,0xda,0x3a,0x10,0x28,0x16,0xbe,0x03,0x95,0xc8,0xa2,0xcf,0x10,0xdf,0xf2,0x64,0x15,0x95,0x12,0xfc,0x7e,0x36,0xec,0x83,0xb3,0xb7,0x5e,0xcf,0xc4,0xfd};
    static std::uint8_t addend75[32] = {0x41,0x6f,0x3e,0x08,0xab,0xe4,0x74,0xd9,0x5c,0x9a,0xc3,0x96,0x22,0x33,0x99,0xa2,0x7c,0x23,0x22,0xc2,0xaa,0xba,0xb5,0x10,0x81,0xc9,0xdf,0xd9,0xea,0xcb,0x29,0x5a};
    static std::uint8_t sum75[32]    = {0x77,0x99,0x3c,0xe2,0xe5,0xf4,0x9c,0xf0,0x1a,0x9e,0x59,0x5e,0xc5,0x02,0xaa,0x82,0x6e,0x87,0x38,0x57,0xbd,0xb7,0x33,0x47,0x6e,0x4d,0x93,0x91,0x49,0x9a,0xee,0x57};
    sm9_fp_from_bytes(augend, augend75);
    sm9_fp_from_bytes(addend, addend75);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum75, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend76[32] = {0x63,0x89,0x72,0xce,0x47,0xaf,0xb2,0xd0,0xf8,0x5c,0x47,0x41,0xab,0x5c,0xb6,0x0c,0x57,0xe3,0x1d,0x5a,0xa2,0x58,0xac,0x7b,0xf1,0xb2,0xd4,0xc4,0xd6,0x61,0xcd,0xe0};
    static std::uint8_t addend76[32] = {0x08,0xa9,0xd4,0x15,0x8f,0x21,0x3b,0x8e,0x17,0x61,0xf7,0xa9,0xd2,0x0e,0xfd,0x01,0xee,0x04,0x9d,0xcf,0x46,0xf5,0x18,0x6c,0x36,0x1c,0x16,0x8f,0x3f,0xe9,0xee,0x01};
    static std::uint8_t sum76[32]    = {0x6c,0x33,0x46,0xe3,0xd6,0xd0,0xee,0x5f,0x0f,0xbe,0x3e,0xeb,0x7d,0x6b,0xb3,0x0e,0x45,0xe7,0xbb,0x29,0xe9,0x4d,0xc4,0xe8,0x27,0xce,0xeb,0x54,0x16,0x4b,0xbb,0xe1};
    sm9_fp_from_bytes(augend, augend76);
    sm9_fp_from_bytes(addend, addend76);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum76, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend77[32] = {0x25,0x0f,0x46,0x60,0x75,0x7a,0xcf,0x51,0x54,0xc5,0xa3,0xfc,0xf5,0x60,0xe5,0x31,0xe8,0x1e,0x67,0x7b,0xc5,0xed,0x8a,0x61,0xf1,0xea,0x3d,0xc6,0xec,0xdd,0x55,0x68};
    static std::uint8_t addend77[32] = {0x1a,0x9e,0x8a,0xc9,0x7a,0x7b,0xfc,0x92,0xf0,0xfe,0x1a,0x4b,0x76,0x59,0xff,0xf7,0xe9,0x7f,0xf5,0x41,0x50,0x6c,0xde,0x1e,0xf2,0x23,0xd0,0x2e,0x43,0x0e,0x79,0xf2};
    static std::uint8_t sum77[32]    = {0x3f,0xad,0xd1,0x29,0xef,0xf6,0xcb,0xe4,0x45,0xc3,0xbe,0x48,0x6b,0xba,0xe5,0x29,0xd1,0x9e,0x5c,0xbd,0x16,0x5a,0x68,0x80,0xe4,0x0e,0x0d,0xf5,0x2f,0xeb,0xcf,0x5a};
    sm9_fp_from_bytes(augend, augend77);
    sm9_fp_from_bytes(addend, addend77);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum77, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend78[32] = {0x7b,0xe1,0x82,0xb2,0x75,0xd3,0x81,0x30,0xe2,0x72,0xb7,0x56,0x77,0x50,0xb3,0xd1,0x3a,0xdb,0x02,0xcc,0x94,0xb1,0xfa,0x52,0xc3,0x5f,0xa5,0x61,0xf5,0xdc,0x30,0xe5};
    static std::uint8_t addend78[32] = {0x3b,0x3d,0x7f,0x94,0x5c,0xa8,0x09,0x9a,0x71,0x48,0x24,0x71,0xe6,0xa7,0x12,0x03,0x26,0x90,0x77,0x3d,0xa7,0x85,0x64,0x12,0xe9,0x8e,0xa0,0xaf,0xc4,0x1f,0x37,0x66};
    static std::uint8_t sum78[32]    = {0x00,0xdf,0x02,0x46,0xcf,0xd7,0xe3,0xd9,0x7d,0xb7,0x30,0x78,0x68,0x68,0xfe,0x8f,0x3f,0x78,0xe6,0xbf,0x21,0xbc,0x6f,0x89,0xc7,0x7e,0xaa,0xe9,0xd6,0xaa,0x22,0xce};
    sm9_fp_from_bytes(augend, augend78);
    sm9_fp_from_bytes(addend, addend78);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum78, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend79[32] = {0x44,0xf7,0x31,0x76,0x4c,0x55,0x3f,0xae,0x40,0x2d,0x7b,0x72,0x81,0xc1,0x9f,0xe8,0x0d,0x56,0xe7,0x31,0x00,0x87,0x3a,0xa4,0x43,0xe4,0x61,0xc0,0x30,0x51,0x9e,0x68};
    static std::uint8_t addend79[32] = {0x01,0x2e,0x49,0xe1,0xcb,0x8e,0x0d,0xd0,0x4a,0x69,0x29,0xb6,0x95,0xcc,0x56,0x0e,0xc6,0x74,0xd6,0x4d,0x6f,0x58,0x08,0xdd,0x77,0xde,0x95,0xd1,0x4f,0x8e,0x57,0xf1};
    static std::uint8_t sum79[32]    = {0x46,0x25,0x7b,0x58,0x17,0xe3,0x4d,0x7e,0x8a,0x96,0xa5,0x29,0x17,0x8d,0xf5,0xf6,0xd3,0xcb,0xbd,0x7e,0x6f,0xdf,0x43,0x81,0xbb,0xc2,0xf7,0x91,0x7f,0xdf,0xf6,0x59};
    sm9_fp_from_bytes(augend, augend79);
    sm9_fp_from_bytes(addend, addend79);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum79, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend80[32] = {0x2d,0x7f,0xa0,0x81,0x14,0x58,0xe9,0x22,0xe3,0x52,0xa9,0xe1,0x53,0x3f,0x35,0xf0,0x4a,0xc5,0x1c,0xdb,0x83,0x44,0xb6,0x90,0x67,0x48,0xb4,0xef,0x0f,0x03,0xeb,0x3b};
    static std::uint8_t addend80[32] = {0x0a,0xcb,0x06,0x00,0x4c,0xa9,0x7e,0x0d,0x87,0xea,0x8c,0x42,0xf1,0x1a,0x9f,0xae,0xde,0xb7,0x7c,0xb2,0x90,0xab,0xa9,0xf9,0x9c,0x81,0xff,0x10,0x47,0xdd,0x65,0x24};
    static std::uint8_t sum80[32]    = {0x38,0x4a,0xa6,0x81,0x61,0x02,0x67,0x30,0x6b,0x3d,0x36,0x24,0x44,0x59,0xd5,0x9f,0x29,0x7c,0x99,0x8e,0x13,0xf0,0x60,0x8a,0x03,0xca,0xb3,0xff,0x56,0xe1,0x50,0x5f};
    sm9_fp_from_bytes(augend, augend80);
    sm9_fp_from_bytes(addend, addend80);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum80, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend81[32] = {0x3e,0xcb,0x17,0xf7,0x8f,0x7d,0x89,0xe7,0x43,0x27,0xa2,0xfa,0xea,0xf9,0x50,0x21,0x26,0x00,0x79,0x4e,0xb4,0xd9,0x85,0xb1,0xf6,0x93,0xfc,0x48,0xa2,0x25,0x77,0xa7};
    static std::uint8_t addend81[32] = {0x06,0xfa,0x83,0x74,0xd8,0xa1,0x8e,0x70,0xc1,0x1f,0xe2,0x03,0xc0,0xa1,0x1f,0x29,0x08,0x2f,0x3a,0xb4,0x07,0xe0,0x3e,0xd9,0xa9,0xbd,0x4d,0x43,0xd4,0x9d,0x21,0xf0};
    static std::uint8_t sum81[32]    = {0x45,0xc5,0x9b,0x6c,0x68,0x1f,0x18,0x58,0x04,0x47,0x84,0xfe,0xab,0x9a,0x6f,0x4a,0x2e,0x2f,0xb4,0x02,0xbc,0xb9,0xc4,0x8b,0xa0,0x51,0x49,0x8c,0x76,0xc2,0x99,0x97};
    sm9_fp_from_bytes(augend, augend81);
    sm9_fp_from_bytes(addend, addend81);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum81, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend82[32] = {0x45,0xec,0x4f,0xd5,0xd9,0x47,0x9c,0xd6,0xb8,0x77,0x5d,0xbb,0x38,0xc2,0xa2,0x2a,0x76,0x45,0xc9,0xf7,0xac,0x10,0x2e,0x57,0x4c,0x58,0xe7,0x22,0x59,0x8f,0xb3,0x24};
    static std::uint8_t addend82[32] = {0x0b,0x97,0xd8,0x1b,0xf9,0xe6,0x76,0x8b,0xa7,0xe1,0xb5,0x48,0x7d,0x3e,0xea,0xfd,0xb3,0x65,0xfd,0x54,0xc2,0x11,0x6e,0x11,0xcf,0x25,0xa3,0xdf,0x8e,0xa4,0x8b,0x58};
    static std::uint8_t sum82[32]    = {0x51,0x84,0x27,0xf1,0xd3,0x2e,0x13,0x62,0x60,0x59,0x13,0x03,0xb6,0x01,0x8d,0x28,0x29,0xab,0xc7,0x4c,0x6e,0x21,0x9c,0x69,0x1b,0x7e,0x8b,0x01,0xe8,0x34,0x3e,0x7c};
    sm9_fp_from_bytes(augend, augend82);
    sm9_fp_from_bytes(addend, addend82);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum82, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend83[32] = {0x0d,0xc7,0xc3,0xb3,0x23,0x3a,0x5a,0x2e,0xae,0x4e,0xb0,0x9c,0x7c,0xcc,0x4f,0x68,0xbb,0x55,0x2b,0xeb,0x45,0x2d,0x65,0xa6,0xd2,0x4c,0x50,0x9e,0x83,0xb3,0x19,0xd7};
    static std::uint8_t addend83[32] = {0x45,0x18,0xb4,0x53,0xaf,0xb8,0xd4,0xa9,0x51,0x8f,0x61,0x8e,0x65,0x65,0xe9,0xea,0x47,0xce,0xd3,0x06,0xfe,0x38,0xf1,0x5d,0xef,0xc9,0xe1,0x12,0x36,0x2d,0xc0,0xe2};
    static std::uint8_t sum83[32]    = {0x52,0xe0,0x78,0x06,0xd2,0xf3,0x2e,0xd7,0xff,0xde,0x12,0x2a,0xe2,0x32,0x39,0x53,0x03,0x23,0xfe,0xf2,0x43,0x66,0x57,0x04,0xc2,0x16,0x31,0xb0,0xb9,0xe0,0xda,0xb9};
    sm9_fp_from_bytes(augend, augend83);
    sm9_fp_from_bytes(addend, addend83);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum83, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend84[32] = {0x53,0xd1,0x57,0x61,0x66,0xc5,0xb3,0xdc,0x7d,0x86,0x16,0x58,0x31,0x32,0x35,0x03,0x22,0x31,0xb3,0xf8,0xec,0x93,0x8c,0x15,0xc8,0xa1,0x21,0xa5,0xc5,0xb0,0xf2,0x99};
    static std::uint8_t addend84[32] = {0x97,0xaf,0x67,0xe5,0x14,0xa2,0x71,0x45,0x7b,0x23,0xa6,0x74,0xae,0xee,0xcb,0xa5,0x53,0xea,0x07,0x9d,0x64,0x02,0xc1,0x49,0x61,0x2f,0x63,0x8e,0x1d,0x6c,0xc6,0x65};
    static std::uint8_t sum84[32]    = {0x35,0x40,0xbf,0x46,0x78,0xc4,0x7e,0x30,0x22,0xa6,0x11,0x7c,0xea,0x92,0x39,0x63,0x54,0x29,0x28,0x4b,0x36,0x1b,0x5e,0x83,0x44,0x60,0xea,0x0b,0xff,0xcc,0x73,0x81};
    sm9_fp_from_bytes(augend, augend84);
    sm9_fp_from_bytes(addend, addend84);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum84, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend85[32] = {0x3e,0x38,0xa3,0x36,0xb0,0x80,0x72,0x39,0xf6,0x9a,0x7d,0xf6,0x2a,0x1e,0x91,0x70,0x9c,0xc7,0xc3,0x22,0x88,0xc2,0x08,0x2f,0xa4,0x15,0x86,0x57,0x8a,0x4c,0x01,0xb3};
    static std::uint8_t addend85[32] = {0x13,0x6f,0x23,0x77,0x20,0xaf,0xe1,0x45,0x7b,0xd6,0x09,0xe8,0x85,0x19,0x1c,0x88,0x45,0xad,0x67,0x14,0x39,0xb0,0x1e,0x32,0x77,0x6b,0x44,0x6f,0x92,0xe6,0x5e,0x83};
    static std::uint8_t sum85[32]    = {0x51,0xa7,0xc6,0xad,0xd1,0x30,0x53,0x7f,0x72,0x70,0x87,0xde,0xaf,0x37,0xad,0xf8,0xe2,0x75,0x2a,0x36,0xc2,0x72,0x26,0x62,0x1b,0x80,0xca,0xc7,0x1d,0x32,0x60,0x36};
    sm9_fp_from_bytes(augend, augend85);
    sm9_fp_from_bytes(addend, addend85);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum85, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend86[32] = {0x3a,0x16,0xc7,0x33,0x22,0x3c,0xb7,0x26,0x11,0x74,0x26,0x09,0x1d,0x3d,0xd1,0x90,0x43,0x4d,0x12,0x50,0x59,0x5c,0x1c,0x3e,0x0c,0xe2,0x41,0xab,0xb7,0x27,0x75,0x05};
    static std::uint8_t addend86[32] = {0x19,0xea,0x58,0xa6,0x23,0xc4,0x2a,0xdd,0x89,0x18,0xb2,0x0d,0xcf,0x22,0x38,0x9d,0x95,0x97,0x70,0xe6,0x6f,0x14,0x00,0xa6,0xe8,0x87,0xed,0x3d,0x53,0x1d,0xa4,0x1d};
    static std::uint8_t sum86[32]    = {0x54,0x01,0x1f,0xd9,0x46,0x00,0xe2,0x03,0x9a,0x8c,0xd8,0x16,0xec,0x60,0x0a,0x2d,0xd8,0xe4,0x83,0x36,0xc8,0x70,0x1c,0xe4,0xf5,0x6a,0x2e,0xe9,0x0a,0x45,0x19,0x22};
    sm9_fp_from_bytes(augend, augend86);
    sm9_fp_from_bytes(addend, addend86);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum86, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend87[32] = {0x3f,0x44,0xfd,0xc3,0xf9,0x94,0x6e,0xa3,0x00,0x6a,0x43,0x0a,0xcc,0xe1,0xcc,0xe6,0xc6,0x1b,0x2d,0xdc,0x65,0x7e,0x63,0x3c,0x04,0x07,0x88,0xf1,0xfd,0x98,0xf5,0x95};
    static std::uint8_t addend87[32] = {0xa4,0x7b,0x36,0x9d,0x10,0xd4,0xda,0xb9,0x15,0x8a,0x41,0x0f,0x5c,0xca,0x4f,0xcd,0x02,0x90,0x45,0xc1,0x4f,0x62,0xf4,0xd6,0xb5,0x3f,0x8c,0x2c,0x42,0xde,0xfc,0xb5};
    static std::uint8_t sum87[32]    = {0x2d,0x80,0x34,0x61,0x07,0xc5,0xa2,0x6a,0x3f,0xf0,0xd8,0xca,0x34,0x1d,0x55,0x6e,0xa6,0xb8,0xe0,0x52,0x9a,0x66,0x69,0x36,0xd3,0xd7,0x79,0xf6,0x5d,0x26,0xac,0xcd};
    sm9_fp_from_bytes(augend, augend87);
    sm9_fp_from_bytes(addend, addend87);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum87, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend88[32] = {0x3f,0xb3,0xa0,0xd7,0x0e,0x5f,0xef,0xbb,0x2b,0x98,0x90,0x6d,0xef,0x6a,0x36,0x62,0xbf,0x3f,0x3d,0xa3,0x2e,0xeb,0x69,0x49,0xf6,0x97,0xe4,0x12,0x03,0x3e,0xb1,0x60};
    static std::uint8_t addend88[32] = {0x03,0x39,0x4b,0x24,0x28,0xa0,0xde,0xe6,0x3e,0x2f,0x11,0x6b,0xd1,0x5a,0xf9,0x26,0x85,0x8a,0x29,0x8d,0xa9,0xe5,0x2e,0xb9,0x5a,0x09,0x38,0x9d,0xe7,0x56,0xec,0xff};
    static std::uint8_t sum88[32]    = {0x42,0xec,0xeb,0xfb,0x37,0x00,0xce,0xa1,0x69,0xc7,0xa1,0xd9,0xc0,0xc5,0x2f,0x89,0x44,0xc9,0x67,0x30,0xd8,0xd0,0x98,0x03,0x50,0xa1,0x1c,0xaf,0xea,0x95,0x9e,0x5f};
    sm9_fp_from_bytes(augend, augend88);
    sm9_fp_from_bytes(addend, addend88);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum88, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend89[32] = {0x8a,0x2a,0xdd,0x0f,0x4b,0x12,0xde,0xfd,0x62,0xa8,0xff,0xd4,0x15,0x75,0xcb,0x00,0xd2,0xa7,0x2c,0x40,0x34,0x16,0x92,0xbd,0x3e,0x98,0x13,0xf3,0x7a,0xc0,0xbe,0x26};
    static std::uint8_t addend89[32] = {0x2b,0x80,0xa2,0x55,0xbf,0x08,0x2b,0x66,0x6c,0x2d,0xaa,0x10,0xc8,0x8c,0x95,0x2f,0xc0,0xee,0x3b,0x87,0xb6,0x4a,0x94,0x9b,0xba,0x94,0x78,0xcc,0xe7,0x25,0x6b,0x63};
    static std::uint8_t sum89[32]    = {0xb5,0xab,0x7f,0x65,0x0a,0x1b,0x0a,0x63,0xce,0xd6,0xa9,0xe4,0xde,0x02,0x60,0x30,0x93,0x95,0x67,0xc7,0xea,0x61,0x27,0x58,0xf9,0x2c,0x8c,0xc0,0x61,0xe6,0x29,0x89};
    sm9_fp_from_bytes(augend, augend89);
    sm9_fp_from_bytes(addend, addend89);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum89, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend90[32] = {0x4c,0xd2,0x52,0xc5,0x02,0xd5,0x6f,0x02,0x1b,0x05,0x3f,0xf7,0x69,0x72,0x47,0x92,0x72,0xfc,0x6f,0x1d,0xf2,0x69,0x24,0x94,0x32,0x1a,0x53,0xbd,0x27,0xac,0x29,0xf6};
    static std::uint8_t addend90[32] = {0x36,0x61,0x39,0xa6,0xda,0xe9,0xbd,0x71,0xd4,0x50,0x68,0xb6,0x44,0x2b,0x2b,0x73,0x30,0x4b,0x9f,0x46,0x1e,0x38,0x08,0xde,0x64,0x19,0x26,0x2b,0xd7,0x9d,0x83,0x71};
    static std::uint8_t sum90[32]    = {0x83,0x33,0x8c,0x6b,0xdd,0xbf,0x2c,0x73,0xef,0x55,0xa8,0xad,0xad,0x9d,0x73,0x05,0xa3,0x48,0x0e,0x64,0x10,0xa1,0x2d,0x72,0x96,0x33,0x79,0xe8,0xff,0x49,0xad,0x67};
    sm9_fp_from_bytes(augend, augend90);
    sm9_fp_from_bytes(addend, addend90);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum90, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend91[32] = {0x3f,0x92,0x0c,0xcc,0x62,0x56,0x79,0x30,0xda,0x6d,0x3e,0x57,0x21,0x7e,0x5d,0xbb,0x29,0x58,0xfc,0x44,0x66,0xd5,0x29,0x81,0x15,0x49,0x93,0x4f,0x24,0x7d,0xe5,0x23};
    static std::uint8_t addend91[32] = {0x5b,0xa2,0x80,0x3e,0xab,0xc4,0x8c,0x90,0x81,0xff,0x86,0x32,0xb3,0x1e,0x26,0xca,0x52,0x8f,0x40,0x1a,0xcf,0xe1,0x02,0xbd,0x57,0x2b,0x21,0x7a,0x7a,0x2f,0x23,0x20};
    static std::uint8_t sum91[32]    = {0x9b,0x34,0x8d,0x0b,0x0e,0x1b,0x05,0xc1,0x5c,0x6c,0xc4,0x89,0xd4,0x9c,0x84,0x85,0x7b,0xe8,0x3c,0x5f,0x36,0xb6,0x2c,0x3e,0x6c,0x74,0xb4,0xc9,0x9e,0xad,0x08,0x43};
    sm9_fp_from_bytes(augend, augend91);
    sm9_fp_from_bytes(addend, addend91);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum91, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend92[32] = {0x22,0x26,0x86,0x69,0x94,0xc8,0x47,0xc7,0x2f,0xa8,0x2a,0xd3,0xe2,0xb5,0xc6,0x40,0x4f,0xcb,0x41,0xe8,0xab,0x51,0x9f,0x4c,0xad,0xf2,0xc1,0xf1,0x80,0x3f,0x9c,0x0d};
    static std::uint8_t addend92[32] = {0x0f,0x77,0x2e,0x69,0x6d,0x43,0xa1,0x01,0x67,0x68,0x91,0x84,0x72,0xcb,0xed,0x36,0x58,0x60,0x73,0x27,0xe3,0x09,0xad,0x42,0x95,0x5b,0x6c,0x73,0xff,0x27,0xe4,0x14};
    static std::uint8_t sum92[32]    = {0x31,0x9d,0xb4,0xd3,0x02,0x0b,0xe8,0xc8,0x97,0x10,0xbc,0x58,0x55,0x81,0xb3,0x76,0xa8,0x2b,0xb5,0x10,0x8e,0x5b,0x4c,0x8f,0x43,0x4e,0x2e,0x65,0x7f,0x67,0x80,0x21};
    sm9_fp_from_bytes(augend, augend92);
    sm9_fp_from_bytes(addend, addend92);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum92, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend93[32] = {0x8e,0x8f,0xee,0x36,0x5a,0xae,0x73,0x4e,0x3c,0x55,0x5c,0x47,0xb7,0x9b,0x54,0x0e,0x42,0x35,0x1b,0xdf,0x9d,0x01,0x08,0xcb,0xb1,0x5c,0x88,0xa5,0xd0,0x01,0xa6,0x49};
    static std::uint8_t addend93[32] = {0x08,0xae,0x9f,0x4a,0xd6,0x8c,0x46,0x4f,0xb0,0x60,0x88,0xee,0xc3,0x14,0x5c,0x9e,0x2e,0x89,0x68,0x97,0xf3,0x87,0xa6,0xe9,0x34,0xe2,0x8e,0xdc,0xcf,0x12,0x65,0x32};
    static std::uint8_t sum93[32]    = {0x97,0x3e,0x8d,0x81,0x31,0x3a,0xb9,0x9d,0xec,0xb5,0xe5,0x36,0x7a,0xaf,0xb0,0xac,0x70,0xbe,0x84,0x77,0x90,0x88,0xaf,0xb4,0xe6,0x3f,0x17,0x82,0x9f,0x14,0x0b,0x7b};
    sm9_fp_from_bytes(augend, augend93);
    sm9_fp_from_bytes(addend, addend93);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum93, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend94[32] = {0x04,0x26,0xa1,0x53,0xc8,0x84,0xcb,0xb8,0x28,0x27,0xbb,0x1a,0xca,0x0f,0x73,0xa4,0x3a,0x5d,0xcf,0x5f,0x64,0x67,0xc6,0xb0,0xc7,0x5b,0xcc,0x80,0x0f,0x3e,0x06,0x06};
    static std::uint8_t addend94[32] = {0x43,0xfe,0xc2,0x8f,0x1d,0x81,0x8f,0x75,0x70,0x58,0x83,0x2f,0xd3,0xb8,0xa3,0x85,0x65,0x79,0x28,0xe1,0x1d,0x9a,0x67,0x58,0x2f,0x65,0x62,0xd2,0xc8,0xb4,0xe6,0x25};
    static std::uint8_t sum94[32]    = {0x48,0x25,0x63,0xe2,0xe6,0x06,0x5b,0x2d,0x98,0x80,0x3e,0x4a,0x9d,0xc8,0x17,0x29,0x9f,0xd6,0xf8,0x40,0x82,0x02,0x2e,0x08,0xf6,0xc1,0x2f,0x52,0xd7,0xf2,0xec,0x2b};
    sm9_fp_from_bytes(augend, augend94);
    sm9_fp_from_bytes(addend, addend94);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum94, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend95[32] = {0x45,0xa9,0xa0,0xb8,0xa6,0x48,0x6a,0x1a,0x70,0x5b,0x5a,0xce,0x20,0x08,0x9f,0x5b,0x35,0x9d,0x31,0x1f,0xaf,0x2a,0xf5,0xea,0x96,0x0c,0x2c,0x00,0x53,0xe2,0x35,0x93};
    static std::uint8_t addend95[32] = {0xae,0x06,0x1f,0xf4,0x4c,0x4a,0x27,0x79,0x9e,0x65,0x84,0x09,0x91,0x7a,0xd9,0x92,0x35,0xe3,0x4d,0x2e,0xe2,0x5d,0x4b,0x32,0x55,0x73,0x7b,0x0d,0x2c,0x88,0x0e,0x60};
    static std::uint8_t sum95[32]    = {0x3d,0x6f,0xc0,0xac,0xef,0xee,0xea,0xa2,0x38,0xbd,0x33,0x87,0xbb,0xf4,0xb1,0xa8,0x49,0x8d,0xeb,0x03,0x77,0x0d,0x52,0x41,0x06,0x10,0x0b,0xe5,0x9d,0x18,0xfe,0x76};
    sm9_fp_from_bytes(augend, augend95);
    sm9_fp_from_bytes(addend, addend95);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum95, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend96[32] = {0x61,0x2a,0x75,0x4b,0x2b,0x36,0xb0,0xad,0x9a,0xcb,0xb0,0xc2,0x73,0xd0,0x5d,0x0d,0xf9,0x7a,0x07,0x1e,0x25,0x55,0x49,0xa7,0x93,0xab,0x14,0xc2,0x80,0xef,0x0e,0x09};
    static std::uint8_t addend96[32] = {0x45,0x51,0x11,0x6a,0xc0,0x72,0xfe,0x1f,0x82,0xa2,0x2c,0xa8,0x11,0x65,0xe5,0xb0,0xe8,0xd6,0x72,0x70,0xf0,0x6f,0xf0,0x12,0x37,0xac,0x50,0xda,0x29,0x31,0x6b,0xa2};
    static std::uint8_t sum96[32]    = {0xa6,0x7b,0x86,0xb5,0xeb,0xa9,0xae,0xcd,0x1d,0x6d,0xdd,0x6a,0x85,0x36,0x42,0xbe,0xe2,0x50,0x79,0x8f,0x15,0xc5,0x39,0xb9,0xcb,0x57,0x65,0x9c,0xaa,0x20,0x79,0xab};
    sm9_fp_from_bytes(augend, augend96);
    sm9_fp_from_bytes(addend, addend96);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum96, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend97[32] = {0x69,0xd7,0x3c,0x7d,0xd8,0x15,0x5b,0xdf,0xe0,0xb2,0xd7,0x00,0x1a,0x8b,0xb2,0xaf,0xe8,0x75,0x59,0x60,0x70,0x62,0x11,0xfa,0xdb,0x31,0x85,0xad,0x58,0x00,0xcb,0x8d};
    static std::uint8_t addend97[32] = {0x53,0x35,0xe7,0x65,0x81,0xc4,0xaf,0x20,0x52,0x9e,0xdd,0x16,0xef,0x18,0x0a,0x50,0xb5,0xe7,0xe2,0x0e,0x2c,0x96,0xdd,0xa5,0xf0,0xa5,0x50,0xc4,0xe5,0x88,0xa4,0xe6};
    static std::uint8_t sum97[32]    = {0x06,0xcd,0x23,0xe3,0x57,0x36,0x64,0x0e,0x5d,0x4e,0x08,0xc7,0x14,0x14,0xf5,0xbb,0x7c,0x6a,0xa8,0x23,0x82,0x7e,0x00,0xc4,0xe6,0x67,0x3b,0x4a,0x5a,0x38,0x2a,0xf6};
    sm9_fp_from_bytes(augend, augend97);
    sm9_fp_from_bytes(addend, addend97);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum97, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend98[32] = {0xa4,0xbf,0x6b,0x8f,0x0d,0xf8,0xe7,0x86,0xee,0x16,0x48,0x97,0xf5,0x53,0xed,0xc5,0x25,0x97,0x23,0x14,0x14,0x6a,0xa9,0xdf,0x8f,0x61,0xe0,0x62,0x62,0xb9,0xaa,0xfa};
    static std::uint8_t addend98[32] = {0x88,0x81,0xc2,0x17,0x99,0x35,0xe5,0x56,0xb8,0xb5,0x22,0xda,0x4f,0xf6,0x50,0xd5,0xbd,0x68,0x5b,0xd2,0xb6,0xa6,0xc2,0x17,0x2d,0x30,0x3a,0xb3,0xec,0x1b,0x17,0x53};
    static std::uint8_t sum98[32]    = {0x77,0x01,0x2d,0xa6,0xa4,0x8b,0x25,0xeb,0xd0,0xc7,0xc0,0x22,0x4f,0xbb,0x77,0x55,0xc1,0x0c,0xeb,0x9b,0xb0,0x96,0x7d,0x1a,0xd7,0x22,0x7f,0xee,0x6b,0x83,0x7c,0xd0};
    sm9_fp_from_bytes(augend, augend98);
    sm9_fp_from_bytes(addend, addend98);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum98, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
    static std::uint8_t augend99[32] = {0x60,0xb7,0xd3,0xef,0xe3,0x5e,0x3c,0xa1,0xac,0xbb,0x2b,0xb9,0xc3,0x52,0x94,0x72,0xb7,0x51,0x65,0xad,0x0f,0xe9,0x89,0x82,0x61,0x81,0xe1,0xf1,0x7d,0x7f,0x01,0x77};
    static std::uint8_t addend99[32] = {0xb2,0x5a,0x8d,0x49,0x34,0x07,0x1c,0xe8,0x8f,0xc0,0x4b,0x03,0x99,0x1f,0x37,0x09,0xb8,0x7c,0xa5,0x5f,0xcb,0xde,0x42,0x3d,0xd2,0xb7,0x67,0x4c,0x69,0xb8,0x2f,0x76};
    static std::uint8_t sum99[32]    = {0x5c,0xd2,0x61,0x39,0x14,0xc1,0xb2,0x98,0x66,0x77,0xcb,0x6d,0x66,0xe3,0x04,0x37,0x4d,0xdb,0x77,0xc1,0xc1,0x4c,0xdc,0xe4,0x4e,0xc9,0xae,0x16,0x03,0xe5,0xeb,0x70};
    sm9_fp_from_bytes(augend, augend99);
    sm9_fp_from_bytes(addend, addend99);
    sm9_fp_add(sum, augend, addend);
    sm9_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum99, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm9_fp_add");
    }
}